Skip to content
Snippets Groups Projects
Commit 456d498d authored by Morris Jette's avatar Morris Jette
Browse files

Fix test for delayed job launch

If a job launch is delayed, the test was failing due to bad parsing.
These lines were being interpretted as a counter folloed by node
names of "queued" and "has":
  srun: job 1332712 queued and waiting for resources
  srun: job 1332712 has been allocated resources
parent 9cc9985e
No related branches found
No related tags found
No related merge requests found
......@@ -232,6 +232,9 @@ proc submit_cpu {ntasks ncpus} {
set x 0
spawn $bin_bash -c "$srun -N$num_nodes -n$ntasks -w$nodelist -c$ncpus --exclusive $bin_printenv SLURMD_NODENAME | $bin_sort -V | $bin_uniq -c"
expect {
-re "job ($number)" {
exp_continue
}
-re "($number) ($alpha_numeric_nodelist)" {
set tasks($x) $expect_out(1,string)
set nodes($x) $expect_out(2,string)
......@@ -265,6 +268,9 @@ proc submit_tasks {ntasks ntaskpn} {
set x 0
spawn $bin_bash -c "$srun -N$num_nodes -n$ntasks --ntasks-per-node=$ntaskpn -w$nodelist --exclusive $bin_printenv SLURMD_NODENAME | $bin_sort -V | $bin_uniq -c"
expect {
-re "job ($number)" {
exp_continue
}
-re "($number) ($alpha_numeric_nodelist)" {
set tasks($x) $expect_out(1,string)
set nodes($x) $expect_out(2,string)
......
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