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)