From 3f12dbd8a4fa651a23ca3d9201f301e535234d71 Mon Sep 17 00:00:00 2001
From: grev <grev>
Date: Wed, 15 Oct 2008 14:46:43 +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 49cad57938..4482716fa9 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 7551bb9128..cff0f7d9f3 100755
--- a/lustre/tests/replay-single.sh
+++ b/lustre/tests/replay-single.sh
@@ -21,6 +21,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