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:
parent
323656c70c
commit
e3da5c10c4
1
.gitignore
vendored
1
.gitignore
vendored
@ -28,6 +28,7 @@ subunit.log
|
|||||||
!/.mailmap
|
!/.mailmap
|
||||||
!/.pylintrc
|
!/.pylintrc
|
||||||
!/.testr.conf
|
!/.testr.conf
|
||||||
|
!/.stestr.conf
|
||||||
|
|
||||||
# Files created by releasenotes build
|
# Files created by releasenotes build
|
||||||
releasenotes/build
|
releasenotes/build
|
||||||
|
3
.stestr.conf
Normal file
3
.stestr.conf
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[DEFAULT]
|
||||||
|
test_path=${OS_TEST_PATH:-./neutron_vpnaas/tests/unit}
|
||||||
|
top_dir=./
|
@ -11,11 +11,11 @@ VENV=${1:-"dsvm-functional"}
|
|||||||
function generate_testr_results {
|
function generate_testr_results {
|
||||||
# Give job user rights to access tox logs
|
# Give job user rights to access tox logs
|
||||||
sudo -H -u $owner chmod o+rw .
|
sudo -H -u $owner chmod o+rw .
|
||||||
sudo -H -u $owner chmod o+rw -R .testrepository
|
sudo -H -u $owner chmod o+rw -R .stestr
|
||||||
if [ -f ".testrepository/0" ] ; then
|
if [ -f ".stestr/0" ] ; then
|
||||||
.tox/$VENV/bin/subunit-1to2 < .testrepository/0 > ./testrepository.subunit
|
.tox/$VENV/bin/subunit-1to2 < .stestr/0 > ./stestr.subunit
|
||||||
$SCRIPTS_DIR/subunit2html ./testrepository.subunit testr_results.html
|
$SCRIPTS_DIR/subunit2html ./stestr.subunit testr_results.html
|
||||||
gzip -9 ./testrepository.subunit
|
gzip -9 ./stestr.subunit
|
||||||
gzip -9 ./testr_results.html
|
gzip -9 ./testr_results.html
|
||||||
sudo mv ./*.gz /opt/stack/logs/
|
sudo mv ./*.gz /opt/stack/logs/
|
||||||
fi
|
fi
|
||||||
|
@ -13,7 +13,6 @@ python-subunit>=0.0.18 # Apache-2.0/BSD
|
|||||||
requests-mock>=1.1.0 # Apache-2.0
|
requests-mock>=1.1.0 # Apache-2.0
|
||||||
sphinx>=1.6.2 # BSD
|
sphinx>=1.6.2 # BSD
|
||||||
openstackdocstheme>=1.16.0 # Apache-2.0
|
openstackdocstheme>=1.16.0 # Apache-2.0
|
||||||
testrepository>=0.0.18 # Apache-2.0/BSD
|
|
||||||
tempest>=16.1.0 # Apache-2.0
|
tempest>=16.1.0 # Apache-2.0
|
||||||
testtools>=1.4.0 # MIT
|
testtools>=1.4.0 # MIT
|
||||||
testresources>=0.2.4 # Apache-2.0/BSD
|
testresources>=0.2.4 # Apache-2.0/BSD
|
||||||
|
Loading…
Reference in New Issue
Block a user