From d3f8445bcbcc3663a971736b95292a61c56e07af Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Wed, 12 Aug 2020 15:04:53 -0700 Subject: [PATCH] Fix the job_summary pexpect test on Mac Macs don't have a CPU column in jobs. --- tests/pexpects/job_summary.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/pexpects/job_summary.py b/tests/pexpects/job_summary.py index acf79df0a..0d63d933a 100644 --- a/tests/pexpects/job_summary.py +++ b/tests/pexpects/job_summary.py @@ -32,7 +32,7 @@ expect_prompt() sendline("false; sleep 10 &; true") expect_prompt() sendline("jobs") -expect_re("Job.*Group.*CPU.*State.*Command") +expect_re("Job.*Group.*(CPU)?.*State.*Command") expect_re("running.*sleep 10 &") expect_prompt() sendline("kill -TERM $last_pid")