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

disable two tests when partition is configured with Shared=FORCE

parent c95ce499
No related branches found
No related tags found
No related merge requests found
......@@ -61,6 +61,24 @@ if {$affinity == 0} {
}
send_user "\ntask affinity plugin installed\n"
set force 0
log_user 0
spawn $scontrol show partition [default_partition]
expect {
-re "Shared=FORCE" {
set force 1
exp_continue
}
eof {
wait
}
}
log_user 1
if {$force == 1} {
send_user "\nWARNING: This test is not compatible with Shared=FORCE\n"
exit 0
}
#
# Build a test program to report affinity by task
#
......
......@@ -60,9 +60,26 @@ if {$affinity == 0} {
send_user "\nWARNING: task affinity not supported on this system\n"
exit 0
}
send_user "\ntask affinity plugin installed\n"
set force 0
log_user 0
spawn $scontrol show partition [default_partition]
expect {
-re "Shared=FORCE" {
set force 1
exp_continue
}
eof {
wait
}
}
log_user 1
if {$force == 1} {
send_user "\nWARNING: This test is not compatible with Shared=FORCE\n"
exit 0
}
# Identify a usable node
set timeout $max_job_delay
set node_name ""
......
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