[CI] check the return value of rally task
The value 2 is sla error, the ci should continue to work. It would be easy to find out the failed workload via `rally task sla-check`. Change-Id: I950c82353d88bc89a96ce3c9481ee45571d5d2ba
This commit is contained in:
parent
ffe6fedf5b
commit
1cb01a5f2d
@ -34,7 +34,13 @@ rally --config-file $TMP_RALLY_CONF db create
|
||||
$RALLY -d env create --name=self
|
||||
|
||||
# Run task
|
||||
set +e
|
||||
$RALLY -d --plugin-paths=$PLUGIN_PATHS task start $TASK_FILE
|
||||
if [ $? -eq 1 ]; then
|
||||
exit 1
|
||||
fi
|
||||
set -e
|
||||
|
||||
$RALLY task report --html-static --out $HTML_REPORT
|
||||
$RALLY task report --json --out $JSON_REPORT
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user