Skip to content
Snippets Groups Projects
Commit 33ca7f16 authored by Danny Auble's avatar Danny Auble
Browse files

Handle situation to avoid shared nodes

parent 4ce5078d
No related branches found
No related tags found
No related merge requests found
......@@ -35,7 +35,7 @@ proc inc21_30_1 {} {
send_user "\nStarting GrpNode limit test\n\n"
set job_id1 0
set job_id2 0
spawn $salloc -N$grn_num --account=$acct $srun $bin_sleep 10
spawn $salloc -N$grn_num --account=$acct --exclusive $srun $bin_sleep 10
expect {
-re "Granted job allocation ($number)" {
set job_id1 $expect_out(1,string)
......@@ -51,10 +51,11 @@ proc inc21_30_1 {} {
}
if {$job_id1 == 0} {
send_user "\nFAILURE: jobs were not submitted\n"
exit 1
set exit_code 1
return
}
spawn $salloc -N1 --account=$acct $srun $bin_sleep 10
spawn $salloc -N1 --account=$acct --exclusive $srun $bin_sleep 10
expect {
-re "Granted job allocation ($number)" {
set job_id2 $expect_out(1,string)
......@@ -74,13 +75,12 @@ proc inc21_30_1 {} {
}
if {$job_id2 == 0} {
send_user "\nFAILURE: jobs were not submitted\n"
cancel_job $job_id1
exit 1
set exit_code 1
} else {
# checks the state of the job
check_state $job_id2
}
# checks the state of the job
check_state $job_id2
# cancels remaining jobs
cancel_job $job_id1
cancel_job $job_id2
......
......@@ -36,7 +36,7 @@ proc inc21_30_6 {} {
send_user "\nStarting MaxNode limit test\n\n"
set job_id1 0
spawn $salloc --account=$acct -N$maxnode_num $srun $bin_sleep 2
spawn $salloc --account=$acct -N$maxnode_num --exclusive -t1 $srun $bin_sleep 2
expect {
-re "Granted job allocation ($number)" {
set job_id1 $expect_out(1,string)
......@@ -58,7 +58,7 @@ proc inc21_30_6 {} {
# cancels remaining jobs
cancel_job $job_id1
spawn $salloc --account=$acct -N[expr $maxnode_num + 1] $srun $bin_sleep 2
spawn $salloc --account=$acct -N[expr $maxnode_num + 1] --exclusive -t1 $srun $bin_sleep 2
expect {
-re "Pending job allocation ($number)" {
set job_id1 $expect_out(1,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