Skip to content

Commit

Permalink
Update for os-testr 1.0.0 / stestr
Browse files Browse the repository at this point in the history
Note: .testr.conf is still necessary for cover target.

Closes-Bug: #1716743
Change-Id: I567d84d0f1109a4809e1ac69e0d54c73a22b9706
  • Loading branch information
yamt committed Sep 19, 2017
1 parent 323656c commit e3da5c1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -28,6 +28,7 @@ subunit.log
!/.mailmap
!/.pylintrc
!/.testr.conf
!/.stestr.conf

# Files created by releasenotes build
releasenotes/build
3 changes: 3 additions & 0 deletions .stestr.conf
@@ -0,0 +1,3 @@
[DEFAULT]
test_path=${OS_TEST_PATH:-./neutron_vpnaas/tests/unit}
top_dir=./
10 changes: 5 additions & 5 deletions neutron_vpnaas/tests/contrib/post_test_hook.sh
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion test-requirements.txt
Expand Up @@ -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
Expand Down

0 comments on commit e3da5c1

Please sign in to comment.