Run rally ./exercise.sh inside post_test_hook

Since ./exercise.sh is run via sudo -H, environment variables
are not available for exercises/rally.sh. Some variables are
needed to be preserved, so we run ./exercise.sh in post_test_hook
without sudo.

Change-Id: I4c147219037d9358e8abda32f2dca7bde5706f83
This commit is contained in:
Sergey Skripnick 2014-04-18 23:19:17 +03:00
parent ba4f813ebb
commit ed70735ac6

View File

@ -20,8 +20,7 @@
#!/bin/bash -xe
export PROJECTS="stackforge/rally $PROJECTS"
export ENABLED_SERVICES=rally
export DEVSTACK_GATE_EXERCISES=1
export RUN_EXERCISES=rally
export DEVSTACK_GATE_EXERCISES=0
export RALLY_SCENARIO={scenario}
function pre_test_hook {{
@ -30,6 +29,11 @@
}}
export -f pre_test_hook
function post_test_hook {{
$BASE/new/rally/tests_ci/rally-gate.sh
}}
export -f post_test_hook
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
./safe-devstack-vm-gate-wrap.sh