From 3daeba5527c8c4a0a6d3d81b42fb41d0d23c8754 Mon Sep 17 00:00:00 2001 From: Moe Jette <jette1@llnl.gov> Date: Wed, 14 Oct 2009 19:22:14 +0000 Subject: [PATCH] disable two tests when partition is configured with Shared=FORCE --- testsuite/expect/test1.89 | 18 ++++++++++++++++++ testsuite/expect/test1.91 | 19 ++++++++++++++++++- 2 files changed, 36 insertions(+), 1 deletion(-) diff --git a/testsuite/expect/test1.89 b/testsuite/expect/test1.89 index b9a9abb6c5e..12d7517aa02 100755 --- a/testsuite/expect/test1.89 +++ b/testsuite/expect/test1.89 @@ -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 # diff --git a/testsuite/expect/test1.91 b/testsuite/expect/test1.91 index 150940ac29e..d27e71553d4 100755 --- a/testsuite/expect/test1.91 +++ b/testsuite/expect/test1.91 @@ -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 "" -- GitLab