File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,18 @@ sleep 3s
33
33
echo q | nc -N 127.0.0.1 55555 >> " $tempdir " /$qemuoutputfile 2>&1
34
34
# Output that will be compared must be printed to stdout
35
35
36
+ sleep 0.1s
37
+ # If still running, try again nicely
38
+ pgrep -af " qemu-system.*" > /dev/null 2>&1 && echo q | nc -N 127.0.0.1 55555 >> " $tempdir " /$qemuoutputfile 2>&1
39
+
40
+ # Ask a bit more firmly with SIGTERM
41
+ pgrep -af " qemu-system.*" > /dev/null 2>&1 && kill $qemupid > /dev/null 2>&1
42
+
43
+ pgrep -af " qemu-system.*" > /dev/null 2>&1 && sleep 0.1s > /dev/null 2>&1
44
+
45
+ # Time to die
46
+ pgrep -af " qemu-system.*" > /dev/null 2>&1 && kill -9 $qemupid > /dev/null 2>&1
47
+
36
48
# Make boot phase silent, for debugging change, run with e.g. $ `env DEBUGGING=true` cargo xtask....
37
49
if [ -n " ${DEBUGGING} " ]; then
38
50
# Debugging: strip leading "I (xyz)" where xyz is an incrementing number, and esp_image specifics
You can’t perform that action at this time.
0 commit comments