diff options
Diffstat (limited to 'examples/execute_installtest.sh')
-rwxr-xr-x | examples/execute_installtest.sh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/examples/execute_installtest.sh b/examples/execute_installtest.sh index 379e201..aef24a5 100755 --- a/examples/execute_installtest.sh +++ b/examples/execute_installtest.sh @@ -10,13 +10,19 @@ # This will install a package using APT and see if that fails. - - set -ex + +# practically, killing is not enough, do a reboot here instead. echo 'nobody@nowhere' > /etc/mailname echo '$Id' +INSTALLTESTPID=$$ +( sleep 1h ; kill $INSTALLTESTPID ) & +KILLPID=$! + apt-get install -y "$1" < /dev/null +kill $KILLPID + # known bugs according to Christian Perrier. # anacron MQ 134017 |