Skip to content

Commit

Permalink
Merge pull request #3455 from oliver-sanders/hold-release-13
Browse files Browse the repository at this point in the history
tests: fix hold-release/13
  • Loading branch information
hjoliver authored Dec 1, 2019
2 parents dec9e30 + eb48224 commit 61a9f00
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions flakytests/hold-release/13-ready-restart/suite.rc
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@ bar
# Kill the suite (cylc stop --now --now also kills the foo-1 job submit process
# and may result in foo-1 going to the submit-failed state instead of ready).
SUITE_PROC=$(cylc get-suite-contact $CYLC_SUITE_NAME | grep PROCESS)
SUITE_PID=$(expr "$SUITE_PROC" : '.*=\([0-9].*\) python.*')
SUITE_PID="$(
cylc get-suite-contact "${CYLC_SUITE_NAME}" \
| sed -n 's/CYLC_SUITE_PROCESS=\([0-9]*\).*/\1/p'
)"
kill -9 $SUITE_PID
# Let the old job submit process finish.
Expand Down

0 comments on commit 61a9f00

Please sign in to comment.