From af9de2e7d663bab1af3cec6349b5369ec10fe6c4 Mon Sep 17 00:00:00 2001 From: Veronique Legrand <veronique.legrand@pasteur.fr> Date: Thu, 28 May 2015 09:02:59 -0700 Subject: [PATCH] Fix test for operation with select/linear --- testsuite/expect/test21.21 | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/testsuite/expect/test21.21 b/testsuite/expect/test21.21 index f24bdffab06..c28b14dbba1 100755 --- a/testsuite/expect/test21.21 +++ b/testsuite/expect/test21.21 @@ -200,10 +200,17 @@ proc _test_limits { } { return $exit_code } - -if {[test_serial]} { - send_user "\nWARNING: This test is not compatible with serial system\n" - exit 0 +set select_type [test_select_type] +if {![string compare $select_type "serial"]} { + send_user "\nWARNING: This test is incompatible with select/serial systems\n" + exit $exit_code +} elseif {![string compare $select_type "linear"]} { + set def_part_name [default_partition] + set nb_nodes [get_node_cnt_in_part $def_part_name] + if {$nb_nodes < 2} { + send_user "\nWARNING: This test is incompatible with select/linear and only one node\n" + exit $exit_code + } } # -- GitLab