From 7eef9a3a015e316df7be3b904c46dd40c59ba0a8 Mon Sep 17 00:00:00 2001 From: Brian Christiansen <brian@cray.com> Date: Tue, 30 Jan 2018 10:17:22 -0700 Subject: [PATCH] Alter test to use the -M option to validate functionality in the last commit. Bug 4548 --- testsuite/expect/test37.12 | 55 +++++++++++++++++++------------------- 1 file changed, 27 insertions(+), 28 deletions(-) diff --git a/testsuite/expect/test37.12 b/testsuite/expect/test37.12 index c09177052e6..d8391e799d9 100755 --- a/testsuite/expect/test37.12 +++ b/testsuite/expect/test37.12 @@ -326,7 +326,7 @@ set reg_default "Submitted batch job ($number)" sbatch_to "--test-only" $regex -set ji0 [sbatch_to "-t5" $reg_default] +set ji0 [sbatch_to "-t5 -M$fedc1" $reg_default] set f1 [wait_for_fed_job $ji0 RUNNING [join $feds ","]] sleep 2 @@ -334,10 +334,9 @@ sleep 2 set feds [lremove $feds $f1] set regex [build_regex $feds] sbatch_to "--test-only" $regex -sbatch_to "--test-only" $regex -sbatch_to "--test-only" $regex +sbatch_to "--test-only -M$f1" [build_regex $f1] -set ji1 [sbatch_to "-t10" $reg_default] +set ji1 [sbatch_to "-t10 -M$fedc2" $reg_default] set f2 [wait_for_fed_job $ji1 RUNNING [join $feds ","]] sleep 2 @@ -345,8 +344,7 @@ sleep 2 set feds [lremove $feds $f2] set regex [build_regex $feds] sbatch_to "--test-only" $regex -sbatch_to "--test-only" $regex -sbatch_to "--test-only" $regex +sbatch_to "--test-only -M$f1,$f2" [build_regex $f1] set ji2 [sbatch_to "-t15" $reg_default] set f3 [wait_for_fed_job $ji2 RUNNING [join $feds ","]] @@ -354,8 +352,8 @@ sleep 2 set regex [build_regex $f1] sbatch_to "--test-only" $regex -sbatch_to "--test-only" $regex -sbatch_to "--test-only" $regex +sbatch_to "--test-only -M$f1,$f2" [build_regex $f1] +sbatch_to "--test-only -M$f2,$f3" [build_regex $f2] set pend_job [sbatch_to "-M$f1 -t50" $reg_default] set pend_cluster [wait_for_fed_job $pend_job PENDING $f1] @@ -366,8 +364,8 @@ if {[string compare $pend_cluster ""] == 0} { set regex [build_regex $f2] sbatch_to "--test-only" $regex -sbatch_to "--test-only" $regex -sbatch_to "--test-only" $regex +sbatch_to "--test-only -M$f1,$f2" [build_regex $f2] +sbatch_to "--test-only -M$f2,$f3" [build_regex $f2] set pend_job [sbatch_to "-M$f2 -t50" $reg_default] set pend_cluster [wait_for_fed_job $pend_job PENDING $f2] @@ -378,8 +376,9 @@ if {[string compare $pend_cluster ""] == 0} { set regex [build_regex $f3] sbatch_to "--test-only" $regex -sbatch_to "--test-only" $regex -sbatch_to "--test-only" $regex +sbatch_to "--test-only -M$f1" [build_regex $f1] +sbatch_to "--test-only -M$f1,$f2" [build_regex $f1] +sbatch_to "--test-only -M$f2,$f3" [build_regex $f3] set pend_job [sbatch_to "-M$f3 -t50" $reg_default] set pend_cluster [wait_for_fed_job $pend_job PENDING $f3] @@ -390,8 +389,7 @@ if {[string compare $pend_cluster ""] == 0} { set regex [build_regex $f1] sbatch_to "--test-only" $regex -sbatch_to "--test-only" $regex -sbatch_to "--test-only" $regex +sbatch_to "--test-only -M$f3" [build_regex $f3] @@ -424,7 +422,7 @@ set reg_default "srun: job ($number).+\\n" srun "--test-only" $regex -set ji0 [srun "-t5" $reg_default] +set ji0 [srun "-t5 -$fedc1" $reg_default] set f1 [wait_for_fed_job $ji0 RUNNING [join $feds ","]] sleep 2 @@ -432,10 +430,11 @@ set fed [lremove $feds $f1] set regex [build_regex $feds] srun "--test-only" $regex -srun "--test-only" $regex -srun "--test-only" $regex +sbatch_to "--test-only" $regex +sbatch_to "--test-only -M$f1" [build_regex $f1] + -set ji1 [srun "-t10" $reg_default] +set ji1 [srun "-t10 -M$fedc2" $reg_default] set f2 [wait_for_fed_job $ji1 RUNNING [join $feds ","]] sleep 2 @@ -443,8 +442,8 @@ set feds [lremove $feds $f2] set regex [build_regex $feds] srun "--test-only" $regex -srun "--test-only" $regex -srun "--test-only" $regex +sbatch_to "--test-only" $regex +sbatch_to "--test-only -M$f1,$f2" [build_regex $f1] set ji2 [srun "-t15" $reg_default] set f3 [wait_for_fed_job $ji2 RUNNING [join $feds ","]] @@ -452,8 +451,8 @@ set regex [build_regex $f1] sleep 2 srun "--test-only" $regex -srun "--test-only" $regex -srun "--test-only" $regex +sbatch_to "--test-only -M$f1,$f2" [build_regex $f1] +sbatch_to "--test-only -M$f2,$f3" [build_regex $f2] set pend_job [srun "-M$f1 -t50" $reg_default] set pend_cluster [wait_for_fed_job $pend_job PENDING $f1] @@ -464,8 +463,8 @@ if {[string compare $pend_cluster ""] == 0} { set regex [build_regex $f2] srun "--test-only" $regex -srun "--test-only" $regex -srun "--test-only" $regex +sbatch_to "--test-only -M$f1,$f2" [build_regex $f2] +sbatch_to "--test-only -M$f2,$f3" [build_regex $f2] set pend_job [srun "-M$f2 -t50" $reg_default] set pend_cluster [wait_for_fed_job $pend_job PENDING $f2] @@ -476,8 +475,9 @@ if {[string compare $pend_cluster ""] == 0} { set regex [build_regex $f3] srun "--test-only" $regex -srun "--test-only" $regex -srun "--test-only" $regex +sbatch_to "--test-only -M$f1" [build_regex $f1] +sbatch_to "--test-only -M$f1,$f2" [build_regex $f1] +sbatch_to "--test-only -M$f2,$f3" [build_regex $f3] set pend_job [srun "-M$f3 -t50" $reg_default] set pend_cluster [wait_for_fed_job $pend_job PENDING $f3] @@ -488,8 +488,7 @@ if {[string compare $pend_cluster ""] == 0} { set regex [build_regex $f1] srun "--test-only" $regex -srun "--test-only" $regex -srun "--test-only" $regex +sbatch_to "--test-only -M$f3" [build_regex $f3] set matches 0 spawn $my_srun -N11 --exclusive --test-only sleep 30 -- GitLab