Skip to content
Snippets Groups Projects
Commit aaf66b0f authored by Marshall Garey's avatar Marshall Garey Committed by Tim Wickberg
Browse files

testsuite - fix test38.3 for non-sh shells.

Test was expecting the job name to be 'sh', when it may be 'bash'
or some other shell. Tweak the regex appropriately.

Bug 4110.
parent 7c410827
No related branches found
No related tags found
No related merge requests found
...@@ -135,7 +135,7 @@ set id_regex "\[0-9,-\]+" ...@@ -135,7 +135,7 @@ set id_regex "\[0-9,-\]+"
# first set (pack job leader). # first set (pack job leader).
spawn $scontrol show job $job_id spawn $scontrol show job $job_id
expect { expect {
-re "JobId=$job_id\\s+PackJobId=$job_id\\s+PackJobOffset=0\\s+JobName=sh\\s+PackJobIdSet=($id_regex)" { -re "JobId=$job_id\\s+PackJobId=$job_id\\s+PackJobOffset=0\\s+JobName=\\w*sh\\s+PackJobIdSet=($id_regex)" {
incr matches incr matches
set id_set $expect_out(1,string) set id_set $expect_out(1,string)
exp_continue exp_continue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment