move to stestr

testr is not maintained any more

Depends-On: I574414aba16377cc550111b9bcd627c28f04fc49
Change-Id: Ibea81c6583300074cfed3c1fa7fb98e2d1dc90fc
This commit is contained in:
Eyal 2018-02-22 11:29:41 +02:00
parent 1684ffa595
commit 3d37a3ea66
5 changed files with 10 additions and 5 deletions

1
.gitignore vendored
View File

@ -21,6 +21,7 @@ develop-eggs/
AUTHORS
ChangeLog
.testrepository
.stestr
.coverage
cover
etc/vitrage/vitrage.conf

3
.stestr.conf Normal file
View File

@ -0,0 +1,3 @@
[DEFAULT]
test_path=${TEST_PATH:-./vitrage/tests}
top_dir=./

View File

@ -31,9 +31,9 @@ fi
sudo cp -rf $DEVSTACK_PATH/tempest/etc/logging.conf.sample $DEVSTACK_PATH/tempest/etc/logging.conf
cd $DEVSTACK_PATH/tempest/
sudo -E testr init
sudo -E stestr init
echo "Listing existing Tempest tests"
sudo -E testr list-tests vitrage_tempest_tests | grep -E "$TESTS" | tee /tmp/vitrage_tempest_tests.list
sudo -E stestr list vitrage_tempest_plugin | grep -E "$TESTS" | tee /tmp/vitrage_tempest_tests.list
echo "Testing $1: $TESTS..."
sudo -E testr run --subunit --load-list=/tmp/vitrage_tempest_tests.list | subunit-trace --fails
sudo -E stestr run --serial --subunit --load-list=/tmp/vitrage_tempest_tests.list | subunit-trace --fails

View File

@ -28,6 +28,7 @@ requests-mock>=1.1.0 # Apache-2.0
testrepository>=0.0.18 # Apache-2.0/BSD
testscenarios>=0.4 # Apache-2.0/BSD
testtools>=2.2.0 # MIT
stestr>=1.0.0 # Apache-2.0
stevedore>=1.20.0 # Apache-2.0
voluptuous>=0.8.9 # BSD License
sympy>=0.7.6 # BSD

View File

@ -12,8 +12,8 @@ setenv =
DISCOVER_DIRECTORY=vitrage/tests
deps = -r{toxinidir}/test-requirements.txt
commands =
/bin/rm -f .testrepository/times.dbm
python setup.py testr --slowest --testr-args='--concurrency 1 {posargs}'
stestr run --serial '{posargs}'
stestr slowest
oslo-config-generator --config-file=etc/vitrage/vitrage-config-generator.conf
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY