Update for os-testr 1.0.0 / stestr

Note: .testr.conf is still necessary for cover target.

Closes-Bug: #1716743
Change-Id: I567d84d0f1109a4809e1ac69e0d54c73a22b9706
This commit is contained in:
YAMAMOTO Takashi 2017-09-12 12:31:02 -06:00
parent 323656c70c
commit e3da5c10c4
4 changed files with 9 additions and 6 deletions

1
.gitignore vendored
View File

@ -28,6 +28,7 @@ subunit.log
!/.mailmap
!/.pylintrc
!/.testr.conf
!/.stestr.conf
# Files created by releasenotes build
releasenotes/build

3
.stestr.conf Normal file
View File

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

View File

@ -11,11 +11,11 @@ VENV=${1:-"dsvm-functional"}
function generate_testr_results {
# Give job user rights to access tox logs
sudo -H -u $owner chmod o+rw .
sudo -H -u $owner chmod o+rw -R .testrepository
if [ -f ".testrepository/0" ] ; then
.tox/$VENV/bin/subunit-1to2 < .testrepository/0 > ./testrepository.subunit
$SCRIPTS_DIR/subunit2html ./testrepository.subunit testr_results.html
gzip -9 ./testrepository.subunit
sudo -H -u $owner chmod o+rw -R .stestr
if [ -f ".stestr/0" ] ; then
.tox/$VENV/bin/subunit-1to2 < .stestr/0 > ./stestr.subunit
$SCRIPTS_DIR/subunit2html ./stestr.subunit testr_results.html
gzip -9 ./stestr.subunit
gzip -9 ./testr_results.html
sudo mv ./*.gz /opt/stack/logs/
fi

View File

@ -13,7 +13,6 @@ python-subunit>=0.0.18 # Apache-2.0/BSD
requests-mock>=1.1.0 # Apache-2.0
sphinx>=1.6.2 # BSD
openstackdocstheme>=1.16.0 # Apache-2.0
testrepository>=0.0.18 # Apache-2.0/BSD
tempest>=16.1.0 # Apache-2.0
testtools>=1.4.0 # MIT
testresources>=0.2.4 # Apache-2.0/BSD