Update path to subunit2html in post_test_hook

Per:

http://lists.openstack.org/pipermail/openstack-dev/2015-August/072982.html

The location of subunit2html changed on the images in the gate
so update the path used in the post_test_hook.

Long-term we should just use what's in devstack-gate.

Closes-Bug: #1491646
(cherry picked from commit d75f79f67c)

This also adds a gate_hook to invoke d-g for env prepping. It merely
triggers main devstack-gate script. We need the hook because our new
neutronclient jobs define gate_hook function that points to it, and in
that case devstack-gate does NOT trigger its main script, leaving it up
to the hook.

Depends-on: I8549db52fa5b752202ac7f019b3e1931a697e337
Change-Id: If37743547f739e494501bbc5dc3bb214293919fa
This commit is contained in:
Takashi NATSUME 2015-09-04 11:04:04 +09:00 committed by Ihar Hrachyshka
parent 259d080d19
commit 9c34bd21cf
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,5 @@
#!/usr/bin/env bash
set -ex
$BASE/new/devstack-gate/devstack-vm-gate.sh

View File

@ -18,7 +18,7 @@ function generate_testr_results {
if [ -f .testrepository/0 ]; then
sudo .tox/functional/bin/testr last --subunit > $WORKSPACE/testrepository.subunit
sudo mv $WORKSPACE/testrepository.subunit $BASE/logs/testrepository.subunit
sudo .tox/functional/bin/python /usr/local/jenkins/slave_scripts/subunit2html.py $BASE/logs/testrepository.subunit $BASE/logs/testr_results.html
sudo /usr/os-testr-env/bin/subunit2html $BASE/logs/testrepository.subunit $BASE/logs/testr_results.html
sudo gzip -9 $BASE/logs/testrepository.subunit
sudo gzip -9 $BASE/logs/testr_results.html
sudo chown jenkins:jenkins $BASE/logs/testrepository.subunit.gz $BASE/logs/testr_results.html.gz