[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL v2 01/13] tests/guest-debug: catch hanging guests
From: |
Alex Bennée |
Subject: |
[PULL v2 01/13] tests/guest-debug: catch hanging guests |
Date: |
Fri, 15 May 2020 15:43:53 +0100 |
If gdb never actually connected with the guest we need to catch that
and clean-up after ourselves.
Signed-off-by: Alex Bennée <address@hidden>
Message-Id: <address@hidden>
diff --git a/tests/guest-debug/run-test.py b/tests/guest-debug/run-test.py
index d9af9573b9e..71c55690546 100755
--- a/tests/guest-debug/run-test.py
+++ b/tests/guest-debug/run-test.py
@@ -80,4 +80,10 @@ if __name__ == '__main__':
print("GDB crashed? SKIPPING")
exit(0)
+ try:
+ inferior.wait(2)
+ except subprocess.TimeoutExpired:
+ print("GDB never connected? Killed guest")
+ inferior.kill()
+
exit(result)
--
2.20.1
- [PULL v2 00/13] testing, tcg and plugin updates, Alex Bennée, 2020/05/15
- [PULL v2 01/13] tests/guest-debug: catch hanging guests,
Alex Bennée <=
- [PULL v2 02/13] travis.yml: Improve the --disable-tcg test on s390x, Alex Bennée, 2020/05/15
- [PULL v2 04/13] exec/cpu-all: Use bool for have_guest_base, Alex Bennée, 2020/05/15
- [PULL v2 05/13] accel/tcg: Relax va restrictions on 64-bit guests, Alex Bennée, 2020/05/15
- [PULL v2 09/13] translate-all: include guest address in out_asm output, Alex Bennée, 2020/05/15
- [PULL v2 03/13] linux-user: completely re-write init_guest_space, Alex Bennée, 2020/05/15
- [PULL v2 06/13] accel/tcg: don't disable exec_tb trace events, Alex Bennée, 2020/05/15
- [PULL v2 08/13] disas: add optional note support to cap_disas, Alex Bennée, 2020/05/15
- [PULL v2 07/13] disas: include an optional note for the start of disassembly, Alex Bennée, 2020/05/15
- [PULL v2 11/13] qemu/plugin: Move !CONFIG_PLUGIN stubs altogether, Alex Bennée, 2020/05/15
- [PULL v2 10/13] qemu/plugin: Trivial code movement, Alex Bennée, 2020/05/15