octavia-dashboard/tools/gate/integration/post_test_hook.sh
Michael Johnson 1f0c90f3a8 Updating for octavia-dashboard
This patch updates the imported code to reflect octavia-dashboard.

More work is required to make this work with the Octavia v2 API.
This will be done in followup patches.

Change-Id: I7363105a53642d0003036cada21c5b0cc25efc1a
2017-06-22 16:20:27 +08:00

20 lines
429 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/octavia-dashboard
sudo -H -u stack tox -e py27integration
retval=$?
set -e
if [ -d ${OCTAVIA_DASHBOARD_SCREENSHOTS_DIR}/ ]; then
cp -r ${OCTAVIA_DASHBOARD_SCREENSHOTS_DIR}/ /home/jenkins/workspace/gate-octavia-dashboard-dsvm-integration/
fi
exit $retval