Browse Source

Migrate stestr completely

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

Change-Id: I7926e8ddb9d1669060ba6bce09e5bd6465678435
Yushiro FURUKAWA 8 months ago
parent
commit
89c1742a8c
5 changed files with 4 additions and 7 deletions
  1. 0
    1
      .gitignore
  2. 1
    1
      .stestr.conf
  3. 0
    1
      lower-constraints.txt
  4. 1
    1
      test-requirements.txt
  5. 2
    3
      tox.ini

+ 0
- 1
.gitignore View File

@@ -28,7 +28,6 @@ cover/
28 28
 .tox
29 29
 nosetests.xml
30 30
 .stestr
31
-.testrepository
32 31
 .venv
33 32
 
34 33
 # Translations

+ 1
- 1
.stestr.conf View File

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

+ 0
- 1
lower-constraints.txt View File

@@ -136,7 +136,6 @@ stestr==2.0.0
136 136
 stevedore==1.28.0
137 137
 Tempita==0.5.2
138 138
 tenacity==4.9.0
139
-testrepository==0.0.18
140 139
 testresources==2.0.0
141 140
 testscenarios==0.4
142 141
 testtools==2.2.0

+ 1
- 1
test-requirements.txt View File

@@ -10,7 +10,7 @@ sphinx!=1.6.6,!=1.6.7,>=1.6.2 # BSD
10 10
 oslosphinx>=4.7.0 # Apache-2.0
11 11
 oslotest>=3.2.0 # Apache-2.0
12 12
 os-testr>=1.0.0 # Apache-2.0
13
-testrepository>=0.0.18 # Apache-2.0/BSD
13
+stestr>=2.0.0 # Apache-2.0
14 14
 testscenarios>=0.4 # Apache-2.0/BSD
15 15
 testtools>=2.2.0 # MIT
16 16
 reno>=2.5.0 # Apache-2.0

+ 2
- 3
tox.ini View File

@@ -12,8 +12,8 @@ setenv =
12 12
 deps = -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
13 13
        -r{toxinidir}/requirements.txt
14 14
        -r{toxinidir}/test-requirements.txt
15
-whitelist_externals = bash find
16
-commands = ostestr --regex '{posargs}'
15
+whitelist_externals = bash
16
+commands = stestr run {posargs}
17 17
 passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
18 18
 
19 19
 [testenv:pep8]
@@ -27,7 +27,6 @@ setenv =
27 27
   {[testenv]setenv}
28 28
   PYTHON=coverage run --source networking_fujitsu --parallel-mode
29 29
 commands =
30
-  find networking_fujitsu -type f -name "*.pyc" -delete
31 30
   stestr run {posargs}
32 31
   coverage combine
33 32
   coverage report

Loading…
Cancel
Save