[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v1 01/10] tests/guest-debug: catch hanging guests
From: |
Alex Bennée |
Subject: |
[PATCH v1 01/10] tests/guest-debug: catch hanging guests |
Date: |
Wed, 13 May 2020 18:51:25 +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>
---
tests/guest-debug/run-test.py | 6 ++++++
1 file changed, 6 insertions(+)
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
- [PATCH v1 00/10] testing and tcg tweaks, Alex Bennée, 2020/05/13
- [PATCH v1 02/10] travis.yml: Improve the --disable-tcg test on s390x, Alex Bennée, 2020/05/13
- [PATCH v1 01/10] tests/guest-debug: catch hanging guests,
Alex Bennée <=
- [PATCH v1 03/10] tests/docker: Kludge <linux/swab.h> breakage by pinning linux-libc-dev, Alex Bennée, 2020/05/13
- [PATCH v1 05/10] exec/cpu-all: Use bool for have_guest_base, Alex Bennée, 2020/05/13
- [PATCH v1 07/10] accel/tcg: don't disable exec_tb trace events, Alex Bennée, 2020/05/13
- [PATCH v1 04/10] linux-user: completely re-write init_guest_space, Alex Bennée, 2020/05/13