Skip to content

Commit

Permalink
Merge pull request #886 from nodlesh/fix-stop-test-without-agent
Browse files Browse the repository at this point in the history
Update manage to stop on agent failure
  • Loading branch information
swcurran authored Nov 6, 2024
2 parents e70b71a + 8535b1e commit b4e90bb
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions manage
Original file line number Diff line number Diff line change
Expand Up @@ -881,27 +881,39 @@ startHarness(){
else
waitForAgent Acme ${ACME_ENDPOINT}
fi
if [ $? -eq 1 ]; then
return 1
fi
fi
if [[ "$BOB" != "none" ]]; then
if [[ IS_BOB_REMOTE -eq 0 ]]; then
waitForAgent Bob http://localhost 9030
else
waitForAgent Bob ${BOB_ENDPOINT}
fi
if [ $? -eq 1 ]; then
return 1
fi
fi
if [[ "$FABER" != "none" ]]; then
if [[ IS_FABER_REMOTE -eq 0 ]]; then
waitForAgent Faber http://localhost 9040
else
waitForAgent Faber ${FABER_ENDPOINT}
fi
if [ $? -eq 1 ]; then
return 1
fi
fi
if [[ "$MALLORY" != "none" ]]; then
if [[ IS_MALLORY_REMOTE -eq 0 ]]; then
waitForAgent Mallory http://localhost 9050
else
waitForAgent Mallory ${MALLORY_ENDPOINT}
fi
if [ $? -eq 1 ]; then
return 1
fi
fi
echo

Expand Down Expand Up @@ -1473,9 +1485,11 @@ case "${COMMAND}" in

run)
startHarness
echo ""
runTests ${TAGS} ${@}
echo ""
if [ $? -eq 1 ]; then
echo "Failed to communicate with one or more agents. Please see agent logs to diagnose the problem. Skipping tests."
else
runTests ${TAGS} ${@}
fi
stopHarness auto
;;
runset)
Expand Down

0 comments on commit b4e90bb

Please sign in to comment.