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?
This commit is contained in:
Fabian Homborg 2020-08-12 18:36:43 +02:00
parent 1c6953ce79
commit c46489bde8

View File

@ -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("")