diff --git a/testsuite/expect/test15.39 b/testsuite/expect/test15.39 index b26b7e3af858a9e6b525e58950d904ddb14ad0e1..fbec41792e1d7032aed7ca0a5b788236845d36f9 100755 --- a/testsuite/expect/test15.39 +++ b/testsuite/expect/test15.39 @@ -73,14 +73,13 @@ if {$matches < $needed_nodes} { set job_id 0 set timeout $max_job_delay -set salloc_pid [spawn $salloc -p $partition -N1-2 --use-min-nodes -n$ncpus $bin_printenv SLURM_NNODES] -#set salloc_pid [spawn $salloc -p $partition -N1-2 -n$ncpus $bin_printenv SLURM_NNODES] +set salloc_pid [spawn $salloc -p $partition -N1-2 --use-min-nodes -n$ncpus $bin_printenv] expect { -re "Granted job allocation ($number)" { set job_id $expect_out(1,string) exp_continue } - -re "($number)" { + -re "SLURM_NNODES=($number)" { set nodes $expect_out(1,string) if {$nodes != 1} { send_user "\nFAILURE: expected 1 allocated node\n"