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:
parent
4605557b71
commit
cf8fe21e7b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue