murano/functionaltests/post_test_hook.sh
Filip Blaha 1e8113866d Policy enforcement functional tests - scripts
Shell scripts preparing dsvm environment for policy enforcement tests.
Tests require devstack with Congress installed.
Some original scripts where changed to reuse functionality.
Jenkins job https://review.openstack.org/#/c/150401/

Partially Implements blueprint congress-support-in-murano

Change-Id: Ib3c26168043f74d4e7ec76f3557f8857cf4304a4
2015-02-19 10:22:46 +01:00

19 lines
486 B
Bash
Executable File

#!/bin/bash
# This script is executed inside post_test_hook function in devstack gate.
cd /opt/stack/new/murano/functionaltests
# Allow to execute other run_tests_*.sh script based on first parameter
RUN_TEST_SUFFIX=""
if [ "$#" -ge 1 ]; then
RUN_TEST_SUFFIX=_$1
fi
sudo ./run_tests$RUN_TEST_SUFFIX.sh
RETVAL=$?
# Copy tempest log files to be published among other logs upon job completion
sudo cp /opt/stack/new/murano/functionaltests/tempest.log /opt/stack/logs
exit $RETVAL