Drop kill/rm from grml-debootstrap and grml2usb runit.sh.
[grml-unittests.git] / grml-debootstrap / runit.sh
1 #!/bin/zsh
2
3 . $FRAMEWORK
4
5 setopt shwordsplit
6
7 CMDLINE="$CMDLINE_COMMON noprompt netscript=$URL_PREFIX:$COMMON_PORT/deploy.sh status=$URL_PREFIX:$STATUS_PORT/"
8 IMAGE=$(tempfile -d /dev/shm)
9 KVM_PARAMS="-hda $IMAGE"
10 TIMEOUT_TIME=180
11 TEST_NAME=grml-debootstrap
12 BAILOUT_CMD='rm -f $IMAGE ; kill -9 $TEST_PID 2>/dev/null'
13
14 # create sample image file
15 dd if=/dev/zero of=$IMAGE bs=1024 count=712000 2>/dev/null
16
17 # run the test (will create a bootable device
18 run_test
19 timeout
20 wait $KVM_PID
21
22 # start second kvm
23 kvm -vnc :0 -hda $IMAGE  &
24 TEST_PID=$!
25
26 wait $SERVER_PID