diff --git a/testsuite/expect/test2.11 b/testsuite/expect/test2.11 index 9457b7f2f61c6ce9af4c3950d5ec7da27554a88e..dc6696141e22b4ab78370d558b99d4472d7eaec8 100755 --- a/testsuite/expect/test2.11 +++ b/testsuite/expect/test2.11 @@ -57,15 +57,15 @@ make_bash_script $file_in " # # Spawn a srun batch job that uses stdout/err and confirm their contents # -set srun_pid [spawn $srun --batch --output=$file_out -t1 $file_in] +set sbatch_pid [spawn $sbatch --output=$file_out -t1 $file_in] expect { - -re "jobid ($number) submitted" { + -re "Submitted batch job ($number)" { set job_id $expect_out(1,string) exp_continue } timeout { send_user "\nFAILURE: srun not responding\n" - slow_kill $srun_pid + slow_kill $sbatch_pid set exit_code 1 } eof { diff --git a/testsuite/expect/test2.7 b/testsuite/expect/test2.7 index 62b163988d261d8747b799a1a09ce16c99fbfd4e..7642c409bf89083ea8dafaf1770eb2ebe55efa4a 100755 --- a/testsuite/expect/test2.7 +++ b/testsuite/expect/test2.7 @@ -52,9 +52,9 @@ make_bash_script $file_in "$scontrol pidinfo \$\$" # # Spawn a srun batch job that uses stdout/err and confirm their contents # -set srun_pid [spawn $srun --batch --output=$file_out --error=$file_err -t1 $file_in] +set srun_pid [spawn $sbatch --output=$file_out --error=$file_err -t1 $file_in] expect { - -re "jobid ($number) submitted" { + -re "Submitted batch job ($number)" { set job_id $expect_out(1,string) exp_continue } diff --git a/testsuite/expect/test2.8 b/testsuite/expect/test2.8 index 182dc812769ffb42fc6560aa0e8fa49c3eb3c421..4ab858bf6886d6a23db02a600be88c75770b63db 100755 --- a/testsuite/expect/test2.8 +++ b/testsuite/expect/test2.8 @@ -50,15 +50,15 @@ make_bash_script $file_in " # # Submit a couple jobs so we have something to work with # -set srun_pid [spawn $srun --batch --output=/dev/null --error=/dev/null -t5 $file_in] +set sbatch_pid [spawn $sbatch --output=/dev/null --error=/dev/null -t5 $file_in] expect { - -re "jobid ($number) submitted" { + -re "Submitted batch job ($number)" { set job_id1 $expect_out(1,string) exp_continue } timeout { send_user "\nFAILURE: srun not responding\n" - slow_kill $srun_pid + slow_kill $sbatch_pid exit 1 } eof { @@ -70,16 +70,16 @@ if {$job_id1 == 0} { exit 1 } -set srun_pid [spawn $srun --batch --output=/dev/null --error=/dev/null -t5 $file_in] +set sbatch_pid [spawn $sbatch --output=/dev/null --error=/dev/null -t5 $file_in] expect { - -re "jobid ($number) submitted" { + -re "Submitted batch job ($number)" { set job_id2 $expect_out(1,string) exp_continue } timeout { send_user "\nFAILURE: srun not responding\n" cancel_job $job_id1 - slow_kill $srun_pid + slow_kill $sbatch_pid exit 1 } eof { diff --git a/testsuite/expect/test3.4 b/testsuite/expect/test3.4 index d968f266df26b8d85044faabd714330b48be4a67..6ec92ae1c0b11c3249013c76cbe0169310182bf8 100755 --- a/testsuite/expect/test3.4 +++ b/testsuite/expect/test3.4 @@ -49,9 +49,9 @@ make_bash_script $file_in "$srun $bin_sleep 60" # # Submit a job so we have something to work with # -set srun_pid [spawn $srun --batch --output=/dev/null --error=/dev/null -t1 --hold $file_in] +set srun_pid [spawn $sbatch --output=/dev/null --error=/dev/null -t1 --hold $file_in] expect { - -re "jobid ($number) submitted" { + -re "Submitted batch job ($number)" { set job_id $expect_out(1,string) exp_continue } diff --git a/testsuite/expect/test3.7 b/testsuite/expect/test3.7 index 1e0d425c4f3195350ce657b459546926ba26fce2..2ac49563e11c43b5ab38d3ff4044bd1e616119ec 100755 --- a/testsuite/expect/test3.7 +++ b/testsuite/expect/test3.7 @@ -122,9 +122,9 @@ exec $bin_chmod 700 $file_prog # # Submit two jobs to the same node # -set srun_pid [spawn $srun --batch -N1 -t1 --output=$file_out1 $file_prog_sh1] +set srun_pid [spawn $sbatch -N1 -t1 --output=$file_out1 $file_prog_sh1] expect { - -re "jobid ($number) submitted" { + -re "Submitted batch job ($number)" { set job_id1 $expect_out(1,string) exp_continue } @@ -171,9 +171,9 @@ if {[string compare $host_name ""] == 0} { exit 1 } # Submit another job to that same node -set srun_pid [spawn $srun --batch -N1 -t1 --output=$file_out2 $file_prog_sh2] +set srun_pid [spawn $sbatch -N1 -t1 --output=$file_out2 $file_prog_sh2] expect { - -re "jobid ($number) submitted" { + -re "Submitted batch job ($number)" { set job_id2 $expect_out(1,string) exp_continue } diff --git a/testsuite/expect/test3.8 b/testsuite/expect/test3.8 index 0bd675e1f7b17bb2e73007c668b80f60aa6d0c10..c734bce9064b4497ef43ebdaf9552aa1063ea4bb 100755 --- a/testsuite/expect/test3.8 +++ b/testsuite/expect/test3.8 @@ -84,15 +84,15 @@ if { [test_bluegene] } { # Spawn a srun batch job that uses stdout/err and confirm their contents # set timeout $max_job_delay -set srun_pid [spawn $srun -N$node_cnt --batch --output=$file_out --error=$file_err -t1 $file_in] +set sbatch_pid [spawn $sbatch -N$node_cnt --output=$file_out --error=$file_err -t1 $file_in] expect { - -re "jobid ($number) submitted" { + -re "Submitted batch job ($number)" { set job_id $expect_out(1,string) exp_continue } timeout { send_user "\nFAILURE: srun not responding\n" - slow_kill $srun_pid + slow_kill $sbatch_pid set exit_code 1 } eof { @@ -184,15 +184,15 @@ set job_id 0 exec $bin_rm -f $file_flag_1 $file_flag_2 $file_flag_3 $file_flag_4 -set srun_pid [spawn $srun --no-requeue --batch --output=$file_out --error=$file_err -t1 $file_in] +set sbatch_pid [spawn $sbatch --no-requeue --output=$file_out --error=$file_err -t1 $file_in] expect { - -re "jobid ($number) submitted" { + -re "Submitted batch job ($number)" { set job_id $expect_out(1,string) exp_continue } timeout { send_user "\nFAILURE: srun not responding\n" - slow_kill $srun_pid + slow_kill $sbatch_pid set exit_code 1 } eof { diff --git a/testsuite/expect/test5.4 b/testsuite/expect/test5.4 index c22a345a073a1fbfbec6774dc499274b3541bb61..ce029c466e1be17cd1dcb321ec7372f1697ba743 100755 --- a/testsuite/expect/test5.4 +++ b/testsuite/expect/test5.4 @@ -48,15 +48,15 @@ make_bash_script $file_in "$srun $bin_sleep 90" # # Submit a couple of job so we have something to look at # -set srun_pid [spawn $srun --batch --output=/dev/null --error=/dev/null -t1 $file_in] +set sbatch_pid [spawn $sbatch --output=/dev/null --error=/dev/null -t1 $file_in] expect { - -re "jobid ($number) submitted" { + -re "Submitted batch job ($number)" { set job_id1 $expect_out(1,string) exp_continue } timeout { send_user "\nFAILURE: srun not responding\n" - slow_kill $srun_pid + slow_kill $sbatch_pid exit 1 } eof { @@ -68,15 +68,15 @@ if {$job_id1 == 0} { exit 1 } -set srun_pid [spawn $srun --batch --output=/dev/null --error=/dev/null --hold -t1 $file_in] +set sbatch_pid [spawn $sbatch --output=/dev/null --error=/dev/null --hold -t1 $file_in] expect { - -re "jobid ($number) submitted" { + -re "Submitted batch job ($number)" { set job_id2 $expect_out(1,string) exp_continue } timeout { send_user "\nFAILURE: srun not responding\n" - slow_kill $srun_pid + slow_kill $sbatch_pid exit 1 } eof { diff --git a/testsuite/expect/test5.5 b/testsuite/expect/test5.5 index 0a33aa2b26ec15403a278282a2456e199a613345..5caf1964ae8d682f09f03aeb40c50a6bd0709f1f 100755 --- a/testsuite/expect/test5.5 +++ b/testsuite/expect/test5.5 @@ -49,15 +49,15 @@ make_bash_script $file_in "$srun $bin_sleep 10" # # Submit a couple of jobs so we have something to look at # -set srun_pid [spawn $srun --batch --output=/dev/null --error=/dev/null --job-name=$job_name1 -t1 $file_in] +set sbatch_pid [spawn $sbatch --output=/dev/null --error=/dev/null --job-name=$job_name1 -t1 $file_in] expect { - -re "jobid ($number) submitted" { + -re "Submitted batch job ($number)" { set job_id1 $expect_out(1,string) exp_continue } timeout { send_user "\nFAILURE: srun not responding\n" - slow_kill $srun_pid + slow_kill $sbatch_pid exit 1 } eof { @@ -69,15 +69,15 @@ if {$job_id1 == 0} { exit 1 } -set srun_pid [spawn $srun --batch --output=/dev/null --error=/dev/null --job-name=$job_name2 --hold -t1 $file_in] +set sbatch_pid [spawn $sbatch --output=/dev/null --error=/dev/null --job-name=$job_name2 --hold -t1 $file_in] expect { - -re "jobid ($number) submitted" { + -re "Submitted batch job ($number)" { set job_id2 $expect_out(1,string) exp_continue } timeout { send_user "\nFAILURE: srun not responding\n" - slow_kill $srun_pid + slow_kill $sbatch_pid exit 1 } eof { diff --git a/testsuite/expect/test5.6 b/testsuite/expect/test5.6 index c9d9c88056c7846eae3196140111942960a8a2ff..039985da221d2f8c31a3bbcf1ad0e8f95b372b40 100755 --- a/testsuite/expect/test5.6 +++ b/testsuite/expect/test5.6 @@ -52,15 +52,15 @@ if { [test_bluegene] } { # # Submit a couple of job so we have something to look at # -set srun_pid [spawn $srun --batch -N$node_cnt --output=/dev/null --error=/dev/null -t5 $file_in] +set sbatch_pid [spawn $sbatch -N$node_cnt --output=/dev/null --error=/dev/null -t5 $file_in] expect { - -re "jobid ($number) submitted" { + -re "Submitted batch job ($number)" { set job_id1 $expect_out(1,string) exp_continue } timeout { send_user "\nFAILURE: srun not responding\n" - slow_kill $srun_pid + slow_kill $sbatch_pid exit 1 } eof { @@ -72,15 +72,15 @@ if {$job_id1 == 0} { exit 1 } -set srun_pid [spawn $srun --batch -N$node_cnt --output=/dev/null --error=/dev/null --hold -t5 $file_in] +set sbatch_pid [spawn $sbatch -N$node_cnt --output=/dev/null --error=/dev/null --hold -t5 $file_in] expect { - -re "jobid ($number) submitted" { + -re "Submitted batch job ($number)" { set job_id2 $expect_out(1,string) exp_continue } timeout { send_user "\nFAILURE: srun not responding\n" - slow_kill $srun_pid + slow_kill $sbatch_pid cancel_job $job_id1 exit 1 } diff --git a/testsuite/expect/test6.10 b/testsuite/expect/test6.10 index f5efd09425ff42d4ca06b939e9dc06ee96cd3d9f..6794d707df61f0e72bc9811299545b4e81b4b9f1 100755 --- a/testsuite/expect/test6.10 +++ b/testsuite/expect/test6.10 @@ -71,17 +71,17 @@ if { $got_login == 0 } { make_bash_script $file_in "$srun $bin_sleep $max_job_delay" # -# Spawn a srun batch job +# Spawn a sbatch job # -set srun_pid [spawn $srun --batch --output=/dev/null --error=/dev/null --hold -t5 $file_in] +set sbatch_pid [spawn $sbatch --output=/dev/null --error=/dev/null --hold -t5 $file_in] expect { - -re "jobid ($number) submitted" { + -re "Submitted batch job ($number)" { set job_id $expect_out(1,string) exp_continue } timeout { send_user "\nFAILURE: srun not responding\n" - slow_kill $srun_pid + slow_kill $sbatch_pid set exit_code 1 } eof { diff --git a/testsuite/expect/test6.11 b/testsuite/expect/test6.11 index 64b30d755524ab705bed68a9f38c4d171c8f2288..502374d6456940d4fc7e8e7bade839214213d454 100755 --- a/testsuite/expect/test6.11 +++ b/testsuite/expect/test6.11 @@ -41,15 +41,15 @@ print_header $test_id # # Submit a job so we have something to work with # -set srun_pid [spawn $srun --batch --output=/dev/null --error=/dev/null --hold -t1 $bin_id] +set sbatch_pid [spawn $sbatch --output=/dev/null --error=/dev/null --hold -t1 $bin_id] expect { - -re "jobid ($number) submitted" { + -re "Submitted batch job ($number)" { set job_id $expect_out(1,string) exp_continue } timeout { send_user "\nFAILURE: srun not responding\n" - slow_kill $srun_pid + slow_kill $sbatch_pid set exit_code 1 } eof { diff --git a/testsuite/expect/test6.12 b/testsuite/expect/test6.12 index bb10a827a110eb87aee215fe98ff8a00f36ba54d..0307a2dcfe95ac782413990ae7198ebf9971fd29 100755 --- a/testsuite/expect/test6.12 +++ b/testsuite/expect/test6.12 @@ -73,18 +73,18 @@ done " # -# Spawn a srun batch job with arguments +# Spawn a sbatch job with arguments # set timeout $max_job_delay -set srun_pid [spawn $srun --batch --output=$file_out --error=$file_err -t2 $file_in] +set sbatch_pid [spawn $sbatch --output=$file_out --error=$file_err -t2 $file_in] expect { - -re "jobid ($number) submitted" { + -re "Submitted batch job ($number)" { set job_id $expect_out(1,string) exp_continue } timeout { send_user "\nFAILURE: srun not responding\n" - slow_kill $srun_pid + slow_kill $sbatch_pid exit 1 } eof { @@ -158,15 +158,15 @@ file delete $file_out $file_err make_bash_script $file_in "$bin_sleep 500" set job_id 0 -set srun_pid [spawn $srun --batch --output=$file_out --error=$file_err -t2 $file_in] +set sbatch_pid [spawn $sbatch --output=$file_out --error=$file_err -t2 $file_in] expect { - -re "jobid ($number) submitted" { + -re "Submitted batch job ($number)" { set job_id $expect_out(1,string) exp_continue } timeout { send_user "\nFAILURE: srun not responding\n" - slow_kill $srun_pid + slow_kill $sbatch_pid exit 1 } eof { @@ -236,15 +236,15 @@ set job_id 0 file delete $file_out $file_err make_bash_script $file_in "$srun $bin_sleep 500" -set srun_pid [spawn $srun --batch --output=$file_out --error=$file_err -t2 $file_in] +set sbatch_pid [spawn $sbatch --output=$file_out --error=$file_err -t2 $file_in] expect { - -re "jobid ($number) submitted" { + -re "Submitted batch job ($number)" { set job_id $expect_out(1,string) exp_continue } timeout { send_user "\nFAILURE: srun not responding\n" - slow_kill $srun_pid + slow_kill $sbatch_pid exit 1 } eof { diff --git a/testsuite/expect/test6.13 b/testsuite/expect/test6.13 index b939416850e66bc46ba818a80db1cc451482c32a..4d273d8e1303623bc710b59654c938b28e076591 100755 --- a/testsuite/expect/test6.13 +++ b/testsuite/expect/test6.13 @@ -55,15 +55,15 @@ make_bash_script $file_in " # Submit a job so we have something to work with # set job_id 0 -set srun_pid [spawn $srun --batch --output=$file_out -t1 $file_in] +set sbatch_pid [spawn $sbatch --output=$file_out -t1 $file_in] expect { - -re "jobid ($number) submitted" { + -re "Submitted batch job ($number)" { set job_id $expect_out(1,string) exp_continue } timeout { send_user "\nFAILURE: srun not responding\n" - slow_kill $srun_pid + slow_kill $sbatch_pid set exit_code 1 exp_continue } @@ -161,15 +161,15 @@ make_bash_script $file_in " # Submit a job so we have something to work with # set job_id 0 -set srun_pid [spawn $srun --batch --output=$file_out -t1 $file_in] +set sbatch_pid [spawn $sbatch --output=$file_out -t1 $file_in] expect { - -re "jobid ($number) submitted" { + -re "Submitted batch job ($number)" { set job_id $expect_out(1,string) exp_continue } timeout { send_user "\nFAILURE: srun not responding\n" - slow_kill $srun_pid + slow_kill $sbatch_pid set exit_code 1 exp_continue } diff --git a/testsuite/expect/test6.3 b/testsuite/expect/test6.3 index 3ee399fd02a0f327e5c88afaf17fddbf86003c85..c3ee1ff330ac092c415302d8aaf22a48686f5fbc 100755 --- a/testsuite/expect/test6.3 +++ b/testsuite/expect/test6.3 @@ -47,15 +47,15 @@ make_bash_script $file_in "$srun $bin_sleep 600" # # Submit a job so we have something to work with # -set srun_pid [spawn $srun --batch --output=/dev/null --error=/dev/null -t1 $file_in] +set sbatch_pid [spawn $sbatch --output=/dev/null --error=/dev/null -t1 $file_in] expect { - -re "jobid ($number) submitted" { + -re "Submitted batch job ($number)" { set job_id1 $expect_out(1,string) exp_continue } timeout { send_user "\nFAILURE: srun not responding\n" - slow_kill $srun_pid + slow_kill $sbatch_pid set exit_code 1 } eof { diff --git a/testsuite/expect/test6.4 b/testsuite/expect/test6.4 index 8065dd1f6ab8253ab01c95316730624b4fc739fd..de5a4ae8c152a892ca8023073b25bd5cef3a885d 100755 --- a/testsuite/expect/test6.4 +++ b/testsuite/expect/test6.4 @@ -47,15 +47,15 @@ make_bash_script $file_in "$srun $bin_sleep 10" # # Submit a couple of jobs so we have something to work with # -set srun_pid [spawn $srun --batch --output=/dev/null --error=/dev/null --job-name=job1 -t1 $file_in] +set sbatch_pid [spawn $sbatch --output=/dev/null --error=/dev/null --job-name=job1 -t1 $file_in] expect { - -re "jobid ($number) submitted" { + -re "Submitted batch job ($number)" { set job_id1 $expect_out(1,string) exp_continue } timeout { send_user "\nFAILURE: srun not responding\n" - slow_kill $srun_pid + slow_kill $sbatch_pid set exit_code 1 } eof { @@ -67,15 +67,15 @@ if {$job_id1 == 0} { exit 1 } -set srun_pid [spawn $srun --batch --output=/dev/null --error=/dev/null --job-name=job2 -t1 $file_in] +set sbatch_pid [spawn $sbatch --output=/dev/null --error=/dev/null --job-name=job2 -t1 $file_in] expect { - -re "jobid ($number) submitted" { + -re "Submitted batch job ($number)" { set job_id2 $expect_out(1,string) exp_continue } timeout { send_user "\nFAILURE: srun not responding\n" - slow_kill $srun_pid + slow_kill $sbatch_pid set exit_code 1 } eof { diff --git a/testsuite/expect/test6.5 b/testsuite/expect/test6.5 index 17d81980862fc617e4d1acacb8b584bc8005ad46..777b03c59a9c9607f1a8a2e2ba7649223858329f 100755 --- a/testsuite/expect/test6.5 +++ b/testsuite/expect/test6.5 @@ -49,15 +49,15 @@ make_bash_script $file_in "$srun $bin_sleep 10" # Submit a couple of jobs so we have something to work with # set timeout 10 -set srun_pid [spawn $srun --batch --output=/dev/null --error=/dev/null -t1 $file_in] +set sbatch_pid [spawn $sbatch --output=/dev/null --error=/dev/null -t1 $file_in] expect { - -re "jobid ($number) submitted" { + -re "Submitted batch job ($number)" { set job_id1 $expect_out(1,string) exp_continue } timeout { send_user "\nFAILURE: srun not responding\n" - slow_kill $srun_pid + slow_kill $sbatch_pid exit 1 } eof { @@ -69,15 +69,15 @@ if {$job_id1 == 0} { exit 1 } -set srun_pid [spawn $srun --batch --output=/dev/null --error=/dev/null -t1 $file_in] +set sbatch_pid [spawn $sbatch --output=/dev/null --error=/dev/null -t1 $file_in] expect { - -re "jobid ($number) submitted" { + -re "Submitted batch job ($number)" { set job_id2 $expect_out(1,string) exp_continue } timeout { send_user "\nFAILURE: srun not responding\n" - slow_kill $srun_pid + slow_kill $sbatch_pid exit 1 } eof { diff --git a/testsuite/expect/test6.7 b/testsuite/expect/test6.7 index 2e89e959c22c5e0a0f80dbeb6a82ec4d7dd345c1..c3b363f8e33ec24f20dbd1a437dd54148c121091 100755 --- a/testsuite/expect/test6.7 +++ b/testsuite/expect/test6.7 @@ -54,15 +54,15 @@ make_bash_script $file_in " # Submit a job so we have something to work with # set job_id 0 -set srun_pid [spawn $srun --batch --output=$file_out -t1 $file_in] +set sbatch_pid [spawn $sbatch --output=$file_out -t1 $file_in] expect { - -re "jobid ($number) submitted" { + -re "Submitted batch job ($number)" { set job_id $expect_out(1,string) exp_continue } timeout { send_user "\nFAILURE: srun not responding\n" - slow_kill $srun_pid + slow_kill $sbatch_pid set exit_code 1 } eof { @@ -159,15 +159,15 @@ make_bash_script $file_in " # Submit a job so we have something to work with # set job_id 0 -set srun_pid [spawn $srun --batch --output=$file_out -t1 $file_in] +set sbatch_pid [spawn $sbatch --output=$file_out -t1 $file_in] expect { - -re "jobid ($number) submitted" { + -re "Submitted batch job ($number)" { set job_id $expect_out(1,string) exp_continue } timeout { send_user "\nFAILURE: srun not responding\n" - slow_kill srun_pid + slow_kill sbatch_pid set exit_code 1 exp_continue } diff --git a/testsuite/expect/test6.8 b/testsuite/expect/test6.8 index 006285d458e481df6feeea714cbbab93ffbe64f8..e270c06963470afe5216558b6c151bb3d91c1e7d 100755 --- a/testsuite/expect/test6.8 +++ b/testsuite/expect/test6.8 @@ -48,17 +48,17 @@ print_header $test_id make_bash_script $file_in "$srun $bin_sleep $max_job_delay" # -# Spawn a couple of srun batch jobs +# Spawn a couple of sbatch jobs # -set srun_pid [spawn $srun --batch --output=/dev/null --error=/dev/null --job-name=job.$test_id --hold -t5 $file_in] +set sbatch_pid [spawn $sbatch --output=/dev/null --error=/dev/null --job-name=job.$test_id --hold -t5 $file_in] expect { - -re "jobid ($number) submitted" { + -re "Submitted batch job ($number)" { set job_id1 $expect_out(1,string) exp_continue } timeout { send_user "\nFAILURE: srun not responding\n" - slow_kill $srun_pid + slow_kill $sbatch_pid set exit_code 1 } eof { @@ -70,15 +70,15 @@ if {$job_id1 == 0} { exit 1 } -set srun_pid [spawn $srun --batch --output=/dev/null --error=/dev/null --job-name=job.$test_id -t5 $file_in] +set sbatch_pid [spawn $sbatch --output=/dev/null --error=/dev/null --job-name=job.$test_id -t5 $file_in] expect { - -re "jobid ($number) submitted" { + -re "Submitted batch job ($number)" { set job_id2 $expect_out(1,string) exp_continue } timeout { send_user "\nFAILURE: srun not responding\n" - slow_kill $srun_pid + slow_kill $sbatch_pid set exit_code 1 } eof { diff --git a/testsuite/expect/test6.9 b/testsuite/expect/test6.9 index b9c7c699af6b92304b321ec461b7984950e21072..f331391f6ff7ef905c1c928254230c9407e1020d 100755 --- a/testsuite/expect/test6.9 +++ b/testsuite/expect/test6.9 @@ -52,17 +52,17 @@ make_bash_script $file_in " " # -# Spawn srun batch job +# Spawn sbatch job # -set srun_pid [spawn $srun --batch --output=/dev/null --error=/dev/null --job-name=job.$test_id -t5 $file_in] +set sbatch_pid [spawn $sbatch --output=/dev/null --error=/dev/null --job-name=job.$test_id -t5 $file_in] expect { - -re "jobid ($number) submitted" { + -re "Submitted batch job ($number)" { set job_id $expect_out(1,string) exp_continue } timeout { send_user "\nFAILURE: srun not responding\n" - slow_kill $srun_pid + slow_kill $sbatch_pid exit 1 } eof { diff --git a/testsuite/expect/test7.1 b/testsuite/expect/test7.1 index b4313b88f0bf9df4418500e6b4669968d2e39c3a..ed35e73a0fd78fb79855e8311afa69c52974f50a 100755 --- a/testsuite/expect/test7.1 +++ b/testsuite/expect/test7.1 @@ -42,48 +42,50 @@ set prio3 -1 print_header $test_id +make_bash_script "pwd_script" { $bin_pwd } + # -# Spawn three srun batch job, one held +# Spawn three sbatch job, one held # -set srun_pid [spawn $srun --batch -t1 --output=/dev/null --error=/dev/null $bin_pwd] +set sbatch_pid [spawn $sbatch -t1 --output=/dev/null --error=/dev/null pwd_script] expect { - -re "jobid ($number) submitted" { + -re "Submitted batch job ($number)" { set job_id1 $expect_out(1,string) exp_continue } timeout { send_user "\nFAILURE: srun not responding\n" - slow_kill $srun_pid + slow_kill $sbatch_pid exit 1 } eof { wait } } -set srun_pid [spawn $srun --batch -t1 --output=/dev/null --error=/dev/null $bin_pwd] +set sbatch_pid [spawn $sbatch -t1 --output=/dev/null --error=/dev/null pwd_script] expect { - -re "jobid ($number) submitted" { + -re "Submitted batch job ($number)" { set job_id2 $expect_out(1,string) exp_continue } timeout { send_user "\nFAILURE: srun not responding\n" - slow_kill $srun_pid + slow_kill $sbatch_pid exit 1 } eof { wait } } -set srun_pid [spawn $srun --batch -t1 --output=/dev/null --error=/dev/null --hold $bin_pwd] +set sbatch_pid [spawn $sbatch -t1 --output=/dev/null --error=/dev/null --hold pwd_script] expect { - -re "jobid ($number) submitted" { + -re "Submitted batch job ($number)" { set job_id3 $expect_out(1,string) exp_continue } timeout { send_user "\nFAILURE: srun not responding\n" - slow_kill $srun_pid + slow_kill $sbatch_pid exit 1 } eof {