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 AUTHORS
ChangeLog ChangeLog
.testrepository .testrepository
.stestr
.coverage .coverage
cover cover
etc/vitrage/vitrage.conf 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 sudo cp -rf $DEVSTACK_PATH/tempest/etc/logging.conf.sample $DEVSTACK_PATH/tempest/etc/logging.conf
cd $DEVSTACK_PATH/tempest/ cd $DEVSTACK_PATH/tempest/
sudo -E testr init sudo -E stestr init
echo "Listing existing Tempest tests" 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..." 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 testrepository>=0.0.18 # Apache-2.0/BSD
testscenarios>=0.4 # Apache-2.0/BSD testscenarios>=0.4 # Apache-2.0/BSD
testtools>=2.2.0 # MIT testtools>=2.2.0 # MIT
stestr>=1.0.0 # Apache-2.0
stevedore>=1.20.0 # Apache-2.0 stevedore>=1.20.0 # Apache-2.0
voluptuous>=0.8.9 # BSD License voluptuous>=0.8.9 # BSD License
sympy>=0.7.6 # BSD sympy>=0.7.6 # BSD

View File

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