diff options
| author | Arthur Hanson Rasmusson <arthur@vgpu.io> | 2026-09-30 02:34:16 -0400 |
|---|---|---|
| committer | Arthur Hanson Rasmusson <arthur@vgpu.io> | 2026-09-30 02:34:16 -0400 |
| commit | 5e1caa2fd07a3a98b3fd481c81a5a1f7cce208be (patch) | |
| tree | 5a9349eaf1329ebd8695783b2454964e889f8ad8 | |
| parent | cebdc091810d33b049e3d77810250e8dfc3b6a2e (diff) | |
| download | open-iov-5e1caa2fd07a3a98b3fd481c81a5a1f7cce208be.tar.gz open-iov-5e1caa2fd07a3a98b3fd481c81a5a1f7cce208be.zip | |
guest-diag: run_cycle - verify live gdb before declaring arm failure
| -rwxr-xr-x | tools/guest-diag/run_cycle.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/guest-diag/run_cycle.sh b/tools/guest-diag/run_cycle.sh index 6786aa1..71db054 100755 --- a/tools/guest-diag/run_cycle.sh +++ b/tools/guest-diag/run_cycle.sh @@ -78,6 +78,13 @@ elif [ "$TRACE" = "gdb" ]; then ARMED=1 break fi + # The launch exec can time out even though nohup gdb started; verify + # from the guest side before declaring the arm failed. + if timeout 20 "$VMEXEC" exec "pgrep -f 'gdb -p' >/dev/null && echo GDBOK" 2>/dev/null | grep -q GDBOK; then + echo " arm attempt $a: exec timed out but gdb is running; continuing" + ARMED=1 + break + fi echo " arm attempt $a failed; retrying" sleep 8 done |
