Files
mgmt/test/shell/t7.sh
James Shubin 276219a691 Run tests with a tmp prefix
This will avoid failures if /var/lib/mgmt/ isn't writable.
2016-08-31 21:55:19 -04:00

10 lines
225 B
Bash
Executable File

#!/bin/bash -e
# run empty graph
timeout --kill-after=20s 15s ./mgmt run --allow-tmp-prefix &
pid=$!
sleep 5s # let it converge
$(sleep 3s && killall -SIGINT mgmt)& # send ^C to exit mgmt
wait $pid # get exit status
exit $?