Add test case for urfave regression
Credit to jerith for helping me hack this together :)
This commit is contained in:
9
test/shell/t7.sh
Executable file
9
test/shell/t7.sh
Executable file
@@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/bash -e
|
||||||
|
|
||||||
|
# run empty graph
|
||||||
|
timeout --kill-after=20s 15s ./mgmt run &
|
||||||
|
pid=$!
|
||||||
|
sleep 5s # let it converge
|
||||||
|
$(sleep 3s && killall -SIGINT mgmt)& # send ^C to exit mgmt
|
||||||
|
wait $pid # get exit status
|
||||||
|
exit $?
|
||||||
Reference in New Issue
Block a user