Gate the gate script.

Add a re-exec to the gate script to make sure that it is
gated itself.

Change-Id: I3ba01ac95be0c89382b1f0e6e8a8bab2e03d80a9
This commit is contained in:
James E. Blair
2012-03-01 15:10:53 -08:00
parent 5f4872df31
commit 8f9d5c0212

View File

@@ -66,6 +66,13 @@ done
# we are testing the proposed change from this point forward.
CI_SCRIPT_DIR=$WORKSPACE/openstack-ci/slave_scripts
# Also, if we're testing openstack-ci, re-exec this script once so
# that we can test the new version of it.
if [[ $GERRIT_PROJECT == "openstack/openstack-ci" ]] && [[ $RE_EXEC != "true" ]]; then
export RE_EXEC="true"
exec $CI_SCRIPT_DIR/devstack-vm-gate.sh
fi
FETCH_OUTPUT=`$CI_SCRIPT_DIR/devstack-vm-fetch.py` || exit $?
eval $FETCH_OUTPUT