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: Ic863da849df2a728ce6b26bfd946262a5439fcad
Vu Cong Tuan 9 months ago
parent
commit
4abd5377e4
6 changed files with 7 additions and 11 deletions
  1. 1
    2
      .gitignore
  2. 3
    0
      .stestr.conf
  3. 0
    7
      .testr.conf
  4. 1
    1
      lower-constraints.txt
  5. 1
    0
      test-requirements.txt
  6. 1
    1
      tox.ini

+ 1
- 2
.gitignore View File

@@ -25,8 +25,7 @@ pip-log.txt
25 25
 .coverage
26 26
 cover
27 27
 .tox
28
-nosetests.xml
29
-.testrepository
28
+.stestr/
30 29
 
31 30
 # Translations
32 31
 *.mo

+ 3
- 0
.stestr.conf View File

@@ -0,0 +1,3 @@
1
+[DEFAULT]
2
+test_path=./oslo_context/tests
3
+top_path=./

+ 0
- 7
.testr.conf View File

@@ -1,7 +0,0 @@
1
-[DEFAULT]
2
-test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
3
-             OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
4
-             OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-60} \
5
-             ${PYTHON:-python} -m subunit.run discover -t ./ ./oslo_context $LISTOPT $IDOPTION
6
-test_id_option=--load-list $IDFILE
7
-test_list_option=--list

+ 1
- 1
lower-constraints.txt View File

@@ -28,8 +28,8 @@ requests==2.14.2
28 28
 requestsexceptions==1.2.0
29 29
 six==1.10.0
30 30
 smmap==0.9.0
31
+stestr==2.0.0
31 32
 stevedore==1.20.0
32
-testrepository==0.0.18
33 33
 testtools==2.2.0
34 34
 traceback2==1.4.0
35 35
 unittest2==1.1.0

+ 1
- 0
test-requirements.txt View File

@@ -6,6 +6,7 @@ fixtures>=3.0.0 # Apache-2.0/BSD
6 6
 hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0
7 7
 oslotest>=3.2.0 # Apache-2.0
8 8
 coverage!=4.4,>=4.0 # Apache-2.0
9
+stestr>=2.0.0 # Apache-2.0
9 10
 
10 11
 # Bandit security code scanner
11 12
 bandit>=1.1.0 # Apache-2.0

+ 1
- 1
tox.ini View File

@@ -8,7 +8,7 @@ deps =
8 8
   -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
9 9
  -r{toxinidir}/test-requirements.txt
10 10
  -r{toxinidir}/requirements.txt
11
-commands = python setup.py testr --slowest --testr-args='{posargs}'
11
+commands = stestr run --slowest {posargs}
12 12
 
13 13
 [testenv:pep8]
14 14
 basepython = python3

Loading…
Cancel
Save