Browse Source

Switch to stestr

According to Openstack summit session [1],
stestr is maintained project to which all Openstack projects should migrate.
Let's switch to stestr as other projects have already moved to it.

[1] https://etherpad.openstack.org/p/YVR-python-pti

Change-Id: I7eaadde83243afed1929bd29fff63272e58e072b
Vu Cong Tuan 9 months ago
parent
commit
f348bfeb18
5 changed files with 6 additions and 20 deletions
  1. 1
    1
      .gitignore
  2. 4
    0
      .stestr.conf
  3. 0
    12
      .testr.conf
  4. 0
    6
      tools/pretty_tox.sh
  5. 1
    1
      tox.ini

+ 1
- 1
.gitignore View File

@@ -14,7 +14,7 @@ build
14 14
 *.log
15 15
 .coverage
16 16
 .coverage.*
17
-/.testrepository/*
17
+.stestr/
18 18
 .tox
19 19
 .venv
20 20
 cover

+ 4
- 0
.stestr.conf View File

@@ -0,0 +1,4 @@
1
+[DEFAULT]
2
+test_path=${OS_TEST_PATH:-./designate_tempest_plugin}
3
+top_dir=./
4
+

+ 0
- 12
.testr.conf View File

@@ -1,12 +0,0 @@
1
-[DEFAULT]
2
-test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
3
-             OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
4
-             OS_LOG_CAPTURE=${OS_LOG_CAPTURE:-1} \
5
-             OS_DEBUG=${OS_DEBUG:-1} \
6
-             OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-500} \
7
-             OS_TEST_LOCK_PATH=${OS_TEST_LOCK_PATH:-${TMPDIR:-'/tmp'}} \
8
-             ${PYTHON:-python} -m subunit.run discover -t ${OS_TOP_LEVEL:-./} ${OS_TEST_PATH:-./designate_tempest_plugin} $LISTOPT $IDOPTION
9
-
10
-test_id_option=--load-list $IDFILE
11
-test_list_option=--list
12
-group_regex=([^\.]*\.)*

+ 0
- 6
tools/pretty_tox.sh View File

@@ -1,6 +0,0 @@
1
-#! /bin/sh
2
-
3
-TESTRARGS=$1
4
-
5
-exec 3>&1
6
-status=$(exec 4>&1 >&3; ( python setup.py testr --slowest --testr-args="--subunit $TESTRARGS"; echo $? >&4 ) | subunit-trace -f) && exit $status

+ 1
- 1
tox.ini View File

@@ -18,7 +18,7 @@ whitelist_externals = sh
18 18
                       rm
19 19
 commands =
20 20
   find . -type f -name "*.pyc" -delete
21
-  sh tools/pretty_tox.sh '{posargs}'
21
+  stestr run {posargs}
22 22
 passenv = http_proxy
23 23
           HTTP_PROXY
24 24
           https_proxy

Loading…
Cancel
Save