* Check and install libvirt with Homebrew
macOS does not have apt, dnf or yum. Add checking for homebrew for
installing libvirt.
* Use platform timeout for tests
* Add timeout detection to test/util.sh
* Use $timeout for shell test requiring timeout
10 lines
220 B
Bash
Executable File
10 lines
220 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
# run empty graph
|
|
$timeout --kill-after=20s 15s ./mgmt run --tmp-prefix &
|
|
pid=$!
|
|
sleep 5s # let it converge
|
|
$(sleep 3s && killall -SIGINT mgmt)& # send ^C to exit mgmt
|
|
wait $pid # get exit status
|
|
exit $?
|