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: Ibbad6f4e63efbef4e2e144f3ba4218ce6579371a
tags/1.9.0
Vu Cong Tuan 1 year ago
parent
commit
500911422f
7 changed files with 9 additions and 12 deletions
  1. 1
    1
      .gitignore
  2. 4
    0
      .stestr.conf
  3. 0
    7
      .testr.conf
  4. 1
    1
      lower-constraints.txt
  5. 1
    1
      requirements.txt
  6. 1
    1
      test-requirements.txt
  7. 1
    1
      tox.ini

+ 1
- 1
.gitignore View File

@@ -15,7 +15,7 @@ sdist
15 15
 .cache
16 16
 .coverage
17 17
 .tox
18
-.testrepository
18
+.stestr/
19 19
 
20 20
 # pbr generates these
21 21
 AUTHORS

+ 4
- 0
.stestr.conf View File

@@ -0,0 +1,4 @@
1
+[DEFAULT]
2
+test_path=./test
3
+top_dir=./
4
+

+ 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 ./ . $LISTOPT $IDOPTION
6
-test_id_option=--load-list $IDFILE
7
-test_list_option=--list

+ 1
- 1
lower-constraints.txt View File

@@ -39,7 +39,7 @@ snowballstemmer==1.2.1
39 39
 Sphinx==1.6.5
40 40
 sphinxcontrib-websupport==1.0.1
41 41
 stevedore==1.20.0
42
-testrepository==0.0.18
42
+stestr==2.0.0
43 43
 testtools==2.2.0
44 44
 traceback2==1.4.0
45 45
 unittest2==1.1.0

+ 1
- 1
requirements.txt View File

@@ -6,6 +6,6 @@ pbr!=2.1.0,>=2.0.0 # Apache-2.0
6 6
 iso8601>=0.1.11 # MIT
7 7
 lxml!=3.7.0,>=3.4.1 # BSD
8 8
 docutils>=0.11 # OSI-Approved Open Source, Public Domain
9
-sphinx!=1.6.6,!=1.6.7,>=1.6.2 # BSD
9
+sphinx!=1.6.6,!=1.6.7,>=1.6.5 # BSD
10 10
 demjson>=2.2.2 # GLGPLv3+
11 11
 PyYAML>=3.12 # MIT

+ 1
- 1
test-requirements.txt View File

@@ -12,7 +12,7 @@ pylint==1.7.1 # GPLv2
12 12
 
13 13
 reno>=2.5.0 # Apache-2.0
14 14
 openstackdocstheme>=1.18.1 # Apache-2.0
15
-testrepository>=0.0.18 # Apache-2.0/BSD
15
+stestr>=2.0.0 # Apache-2.0
16 16
 
17 17
 # mock object framework
18 18
 mock>=2.0.0 # BSD

+ 1
- 1
tox.ini View File

@@ -12,7 +12,7 @@ deps = scrapy>=1.0.0
12 12
        -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
13 13
        -r{toxinidir}/test-requirements.txt
14 14
        -r{toxinidir}/requirements.txt
15
-commands = python setup.py testr --slowest --testr-args='{posargs}'
15
+commands = stestr run --slowest {posargs}
16 16
 
17 17
 [testenv:pep8]
18 18
 commands =

Loading…
Cancel
Save