From 4817f97823c11ae17149c9c4a4784df38b6ac08b Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Fri, 4 Sep 2020 17:51:55 +0200 Subject: [PATCH] tests: Print some more info in the job_summary test for debugging This one fails a bunch on CI and I have no idea why. --- tests/pexpects/job_summary.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/pexpects/job_summary.py b/tests/pexpects/job_summary.py index 0d63d933a..cadec092b 100644 --- a/tests/pexpects/job_summary.py +++ b/tests/pexpects/job_summary.py @@ -33,7 +33,9 @@ sendline("false; sleep 10 &; true") expect_prompt() sendline("jobs") expect_re("Job.*Group.*(CPU)?.*State.*Command") -expect_re("running.*sleep 10 &") +expect_re(".*running.*sleep 10 &") +expect_prompt() +sendline("echo $last_pid") expect_prompt() sendline("kill -TERM $last_pid") expect_re("[0-9]+:0:sleep 10 &:SIGTERM:Polite quit request", timeout=20)