X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Ftests%2Ftest-framework.sh;h=7974ceef545e271682012bdb5a878648601edb6a;hp=b7216d25095334581485b72d22503749c2885c31;hb=5e04a816ea02cdbf4dfcbeac6f4df3ffb28f81b9;hpb=b4ea1101f8ee890eb08106a070a4d7aa312f78b2 diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index b7216d2..7974cee 100644 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -267,9 +267,12 @@ init_test_env() { } check_cpt_number() { + local facet=$1 local ncpts - ncpts=$(lctl get_param -n cpu_partition_table 2>/dev/null| wc -l) + ncpts=$(do_facet $facet "lctl get_param -n " \ + "cpu_partition_table 2>/dev/null| wc -l" || echo 1) + if [ $ncpts -eq 0 ]; then echo "1" else