From ff716f4003cd2510b83f283de948db3391188152 Mon Sep 17 00:00:00 2001 From: chenhb Date: Thu, 30 Nov 2017 15:19:23 +0800 Subject: [PATCH] Make the error code diffrent between running error and sla error We could decide to go running or stop our tasks by the different error code. Change-Id: If9e76858b3644127263270fc799e8df0b78b6c19 --- tests/ci/rally_gate_functions.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/ci/rally_gate_functions.sh b/tests/ci/rally_gate_functions.sh index 41ff6008..dbc240b8 100644 --- a/tests/ci/rally_gate_functions.sh +++ b/tests/ci/rally_gate_functions.sh @@ -119,7 +119,13 @@ function run () { $PYTHON $RALLY_DIR/tests/ci/osresources.py --dump-list resources_at_start.txt + set +e rally --rally-debug task start --task $TASK $TASK_ARGS + retval=$? + if [[ $? -eq 1 ]]; then + exit $retval + fi + set -e mkdir -p rally-plot/extra $PYTHON $RALLY_DIR/tests/ci/render.py ci/index.html > rally-plot/extra/index.html