Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
rpelisse committed Jun 27, 2024
1 parent 10b8cc3 commit 568d2f1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ansible/molecule/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,10 @@ runAllMoleculeScenariosInParralel() {
for pid in ${pids[@]}
do
wait "${pid}"
echo "PID(${pid}) returned: $?"
if [ "${pid}" -ne 0 ]; then
MOLECULE_RUN_STATUS="${pid}"
scenario_exit_status=${?}
echo "PID(${pid}) returned: ${scenario_exit_status}"
if [ "${scenario_exit_status}" -ne 0 ]; then
MOLECULE_RUN_STATUS="${scenario_exit_status}"
fi
done
export MOLECULE_RUN_STATUS
Expand Down

0 comments on commit 568d2f1

Please sign in to comment.