Skip to content
Snippets Groups Projects
Commit 8d7c3dc0 authored by Moe Jette's avatar Moe Jette
Browse files

tweak the test to operate properly on a core scheduled system with more than

one thread configured per core
parent 6a2f20c4
No related branches found
No related tags found
No related merge requests found
...@@ -67,7 +67,7 @@ set host "" ...@@ -67,7 +67,7 @@ set host ""
set timeout $max_job_delay set timeout $max_job_delay
set task_cnt 0 set task_cnt 0
set srun_pid [spawn $srun -N1 --cpus-per-task=1 --exclusive -l -t1 $file_in] set srun_pid [spawn $srun -N1 --cpus-per-task=1 --threads-per-core=1 --exclusive -l -t1 $file_in]
expect { expect {
-re "Granted job allocation ($number)" { -re "Granted job allocation ($number)" {
set job_id $expect_out(1,string) set job_id $expect_out(1,string)
...@@ -119,7 +119,7 @@ if {$cpu_cnt != $task_cnt} { ...@@ -119,7 +119,7 @@ if {$cpu_cnt != $task_cnt} {
set exit_code 1 set exit_code 1
} }
if {$cpu_cnt < 2} { if {$cpu_cnt < 2} {
send_user "\nWARNING: The node only has one CPU\n" send_user "\nWARNING: The node only has one core\n"
exit $exit_code exit $exit_code
} }
......
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