From bd9470f85e6a30c4f9d439b579a037419be7785e Mon Sep 17 00:00:00 2001 From: Fan Yong Date: Mon, 3 Sep 2012 10:57:32 +0800 Subject: [PATCH] LU-1804 tests: skip OI scrub speed test under UP env The OI scrub speed depends on CPU/RAM schedule. There may be more schedule delay under UP environment. So skip related test cases. Signed-off-by: Fan Yong Change-Id: Iebc514857c6d88601598a7da58a340296655dcf1 Reviewed-on: http://review.whamcloud.com/3846 Tested-by: Hudson Tested-by: Maloo Reviewed-by: Yu Jian Reviewed-by: Andreas Dilger --- lustre/tests/sanity-scrub.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lustre/tests/sanity-scrub.sh b/lustre/tests/sanity-scrub.sh index 2706f36..1ce2737 100644 --- a/lustre/tests/sanity-scrub.sh +++ b/lustre/tests/sanity-scrub.sh @@ -482,6 +482,11 @@ test_8() { run_test 8 "Control OI scrub manually" test_9() { + if [ -z "$(grep "processor.*: 1" /proc/cpuinfo)" ]; then + skip "Testing on UP system, the speed may be inaccurate." + return 0 + fi + scrub_prep 8000 mds_backup_restore || error "(1) Fail to backup/restore!" -- 1.8.3.1