diff options
author | Alex Bennée | 2020-05-13 19:51:25 +0200 |
---|---|---|
committer | Alex Bennée | 2020-05-15 16:25:07 +0200 |
commit | b03e4ffffb1e4a34cb0985f5f5c4a2cfb272e697 (patch) | |
tree | 640dbb67ac1b45398219942b9caf4fc988a2a5f0 | |
parent | Merge remote-tracking branch 'remotes/kraxel/tags/ui-20200515-pull-request' i... (diff) | |
download | qemu-b03e4ffffb1e4a34cb0985f5f5c4a2cfb272e697.tar.gz qemu-b03e4ffffb1e4a34cb0985f5f5c4a2cfb272e697.tar.xz qemu-b03e4ffffb1e4a34cb0985f5f5c4a2cfb272e697.zip |
tests/guest-debug: catch hanging guests
If gdb never actually connected with the guest we need to catch that
and clean-up after ourselves.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20200513175134.19619-2-alex.bennee@linaro.org>
-rwxr-xr-x | tests/guest-debug/run-test.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/guest-debug/run-test.py b/tests/guest-debug/run-test.py index d9af9573b9..71c5569054 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) |