From 32f9bb0592c90c53be6658522a61001499c8769d Mon Sep 17 00:00:00 2001
From: grev <grev>
Date: Wed, 15 Oct 2008 14:42:26 +0000
Subject: [PATCH] b=16932 i=Johann skip some tests if there are several ost
 services on oss node

---
 lustre/tests/replay-dual.sh   | 7 +++++++
 lustre/tests/replay-single.sh | 7 +++++++
 2 files changed, 14 insertions(+)

diff --git a/lustre/tests/replay-dual.sh b/lustre/tests/replay-dual.sh
index ffa2186d29..8d38be6f6c 100755
--- a/lustre/tests/replay-dual.sh
+++ b/lustre/tests/replay-dual.sh
@@ -13,6 +13,13 @@ CLEANUP=${CLEANUP:-""}
 MOUNT_2=${MOUNT_2:-"yes"}
 . $LUSTRE/tests/test-framework.sh
 
+if [ "$FAILURE_MODE" = "HARD" ] && mixed_ost_devs; then
+    CONFIG_EXCEPTIONS="17"
+    echo -n "Several ost services on one ost node are used with FAILURE_MODE=$FAILURE_MODE. "
+    echo "Except the tests: $CONFIG_EXCEPTIONS"
+    ALWAYS_EXCEPT="$ALWAYS_EXCEPT $CONFIG_EXCEPTIONS"
+fi
+
 init_test_env $@
 
 . ${CONFIG:=$LUSTRE/tests/cfg/$NAME.sh}
diff --git a/lustre/tests/replay-single.sh b/lustre/tests/replay-single.sh
index c8a8cb51f9..b8b5c3485a 100755
--- a/lustre/tests/replay-single.sh
+++ b/lustre/tests/replay-single.sh
@@ -20,6 +20,13 @@ GRANT_CHECK_LIST=${GRANT_CHECK_LIST:-""}
 # bug number:
 ALWAYS_EXCEPT="$REPLAY_SINGLE_EXCEPT"
 
+if [ "$FAILURE_MODE" = "HARD" ] && mixed_ost_devs; then
+    CONFIG_EXCEPTIONS="0b 42 47 61a 61c"
+    echo -n "Several ost services on one ost node are used with FAILURE_MODE=$FAILURE_MODE. "
+    echo "Except the tests: $CONFIG_EXCEPTIONS"
+    ALWAYS_EXCEPT="$ALWAYS_EXCEPT $CONFIG_EXCEPTIONS"
+fi
+
 #                                                  63 min  7 min  AT AT AT AT"
 [ "$SLOW" = "no" ] && EXCEPT_SLOW="1 2 3 4 6 12 16 44a     44b    65 66 67 68"
 
-- 
GitLab