Skip to content
Snippets Groups Projects
Commit b03e4fff authored by Alex Bennée's avatar Alex Bennée
Browse files

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: default avatarAlex Bennée <alex.bennee@linaro.org>
Message-Id: <20200513175134.19619-2-alex.bennee@linaro.org>
parent 2478b8ec
No related branches found
No related tags found
No related merge requests found
......@@ -80,4 +80,10 @@ def get_args():
print("GDB crashed? SKIPPING")
exit(0)
try:
inferior.wait(2)
except subprocess.TimeoutExpired:
print("GDB never connected? Killed guest")
inferior.kill()
exit(result)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment