Browse Source

Switch to using stestr

According to Openstack summit session [1] stestr is
maintained project to which all Openstack projects should migrate.

Let's switch it then.

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

Change-Id: I98966887d8299bdb4b512c52e65d5915a2fc059e
Signed-off-by: Chuck Short <chucks@redhat.com>
Chuck Short 9 months ago
parent
commit
99a1745113
5 changed files with 7 additions and 1 deletions
  1. 1
    0
      .gitignore
  2. 3
    0
      .stestr.conf
  3. 1
    0
      lower-constraints.txt
  4. 1
    0
      test-requirements.txt
  5. 1
    1
      tox.ini

+ 1
- 0
.gitignore View File

@@ -25,6 +25,7 @@ pip-log.txt
25 25
 .tox
26 26
 nosetests.xml
27 27
 .testrepository
28
+.stestr
28 29
 .venv
29 30
 
30 31
 # Translations

+ 3
- 0
.stestr.conf View File

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

+ 1
- 0
lower-constraints.txt View File

@@ -125,6 +125,7 @@ sqlalchemy-migrate==0.11.0
125 125
 SQLAlchemy==1.2.5
126 126
 sqlparse==0.2.4
127 127
 statsd==3.2.2
128
+stestr==1.0.0
128 129
 stevedore==1.28.0
129 130
 suds-jurko==0.6
130 131
 Tempita==0.5.2

+ 1
- 0
test-requirements.txt View File

@@ -11,6 +11,7 @@ python-subunit>=1.0.0 # Apache-2.0/BSD
11 11
 sphinx!=1.6.6,!=1.6.7,>=1.6.2 # BSD
12 12
 oslosphinx>=4.7.0 # Apache-2.0
13 13
 oslotest>=3.2.0 # Apache-2.0
14
+stestr>=1.0.0 # Apache-2.0
14 15
 
15 16
 testrepository>=0.0.18 # Apache-2.0/BSD
16 17
 testresources>=2.0.0 # Apache-2.0/BSD

+ 1
- 1
tox.ini View File

@@ -12,7 +12,7 @@ deps = -egit+https://git.openstack.org/openstack/nova@master#egg=nova
12 12
        -r{toxinidir}/requirements.txt
13 13
        -r{toxinidir}/test-requirements.txt
14 14
 whitelist_externals = sh
15
-commands = python setup.py testr --slowest --testr-args='{posargs}'
15
+commands = stestr run {posargs}
16 16
 # there is also secret magic in ostestr which lets you run in a fail only
17 17
 # mode. To do this define the TRACE_FAILONLY environmental variable.
18 18
 

Loading…
Cancel
Save