From c46489bde82d7c297f1c209518519f34cbcd3255 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Wed, 12 Aug 2020 18:36:43 +0200 Subject: [PATCH] tests/job_summary: Add jobs call Might help figuring out where this times out on CI? We're waiting *20 seconds* for the output to appear, there's no way that's too slow. So maybe we're going too fast elsewhere? --- tests/pexpects/job_summary.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/pexpects/job_summary.py b/tests/pexpects/job_summary.py index fdd1de263..acf79df0a 100644 --- a/tests/pexpects/job_summary.py +++ b/tests/pexpects/job_summary.py @@ -31,6 +31,10 @@ expect_prompt() # cmd_line correctly prints only the actually backgrounded job. sendline("false; sleep 10 &; true") expect_prompt() +sendline("jobs") +expect_re("Job.*Group.*CPU.*State.*Command") +expect_re("running.*sleep 10 &") +expect_prompt() sendline("kill -TERM $last_pid") expect_re("[0-9]+:0:sleep 10 &:SIGTERM:Polite quit request", timeout=20) sendline("")