Files
mgmt/test/shell/graph-exit1.sh
2018-02-18 14:19:05 -05:00

11 lines
411 B
Bash
Executable File

#!/bin/bash -e
# should take 15 seconds for longest resources plus startup time to shutdown
# we don't want the ^C to allow the rest of the graph to continue executing!
$timeout --kill-after=65s 55s "$MGMT" run --yaml graph-exit1.yaml --no-watch --no-pgp --tmp-prefix &
pid=$!
sleep 5s # let the initial resources start to run...
killall -SIGINT mgmt # send ^C to exit mgmt
wait $pid # get exit status
exit $?