ca03ae860a
The gate job calls the hook scripts directly, without changing the current directory. So we need to source the commons script from the hook script directory. Also fix typo in screen dir env var name. Change-Id: I2fb3759307035e63e6bec9c4f1cdf568e178ebb2
20 lines
453 B
Bash
Executable File
20 lines
453 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# This script will be executed inside post_test_hook function in devstack gate
|
|
|
|
set -x
|
|
|
|
DIR=${BASH_SOURCE%/*}
|
|
source $DIR/commons $@
|
|
|
|
set +e
|
|
cd /opt/stack/new/neutron-lbaas-dashboard
|
|
sudo -H -u stack tox -e py27integration
|
|
retval=$?
|
|
set -e
|
|
|
|
if [ -d ${NEUTRON_LBAAS_DASHBOARD_SCREENSHOTS_DIR}/ ]; then
|
|
cp -r ${NEUTRON_LBAAS_DASHBOARD_SCREENSHOTS_DIR}/ /home/jenkins/workspace/gate-neutron-lbaas-dashboard-dsvm-integration/
|
|
fi
|
|
exit $retval
|