Fix syntax error in ironic-python-agent post job

Using the wrong type of quotes in the bash code meant that the $ERRORS
variable wasn't being resolved, resulting in a syntax error.

Change-Id: I81c01f358338ce183dc74d4646b006fa30450473
This commit is contained in:
Sam Betts 2016-08-15 15:20:59 +01:00
parent 4605557b71
commit cf8fe21e7b
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@
trap "finish" EXIT
function finish {{
if [[ '$ERRORS' -eq 1 ]]; then
if [[ "$ERRORS" -eq 1 ]]; then
$VENV/bin/generate-subunit $TRANS_START_TIME $SECONDS 'fail' $JOBNAME >> $SUBUNIT_OUTPUT
else
$VENV/bin/generate-subunit $TRANS_START_TIME $SECONDS 'success' $JOBNAME >> $SUBUNIT_OUTPUT