Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ Fixed

Contributed by @khushboobhatia01

* Fix ``st2-self-check`` script reporting falsey success when the nested workflows runs failed. #5487

3.6.0 - October 29, 2021
------------------------

Expand Down
4 changes: 2 additions & 2 deletions st2common/bin/st2-self-check
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ do

START_TS=$(date +%s)
OUTPUT=$(st2 run ${TEST} protocol=${PROTOCOL} token=${ST2_AUTH_TOKEN})
echo ${OUTPUT} | grep "status" | grep -q "succeeded"
echo "${OUTPUT}" | grep "status" | grep -q "succeeded"
EXIT_CODE=$?
END_TS=$(date +%s)
DURATION=$(expr ${END_TS} - ${START_TS})
Expand All @@ -159,7 +159,7 @@ if [ ${RUN_ORQUESTA_TESTS} = "true" ]; then

START_TS=$(date +%s)
OUTPUT=$(st2 run examples.orquesta-examples)
echo ${OUTPUT} | grep "status" | grep -q "succeeded"
echo "${OUTPUT}" | grep "status" | grep -q "succeeded"
EXIT_CODE=$?
END_TS=$(date +%s)
DURATION=$(expr ${END_TS} - ${START_TS})
Expand Down