Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-16027 tests: sanity:test_66: specify blocksize explicitly
[fs/lustre-release.git]
/
lustre
/
tests
/
replay-single-lmv.sh
diff --git
a/lustre/tests/replay-single-lmv.sh
b/lustre/tests/replay-single-lmv.sh
index
3d8501f
..
63ec67a
100755
(executable)
--- a/
lustre/tests/replay-single-lmv.sh
+++ b/
lustre/tests/replay-single-lmv.sh
@@
-1,34
+1,27
@@
#!/bin/bash
set -e
#!/bin/bash
set -e
-#set -v
-#
-# This test needs to be run on the client
-#
-
-LUSTRE=${LUSTRE:-`dirname $0`/..}
+LUSTRE=${LUSTRE:-$(dirname $0)/..}
. $LUSTRE/tests/test-framework.sh
init_test_env $@
. $LUSTRE/tests/test-framework.sh
init_test_env $@
-. ${CONFIG:=$LUSTRE/tests/cfg/lmv.sh}
-
-#
Skip these tests
-ALWAYS_EXCEPT=""
+#
bug number for skipped test:
+ALWAYS_EXCEPT="
REPLAY_SINGLE_LMV_EXCEPT
"
build_test_filter
SETUP=${SETUP:-"setup"}
CLEANUP=${CLEANUP:-"stopall"}
if [ "$ONLY" == "cleanup" ]; then
build_test_filter
SETUP=${SETUP:-"setup"}
CLEANUP=${CLEANUP:-"stopall"}
if [ "$ONLY" == "cleanup" ]; then
- lctl set_param debug=0 || true
- $CLEANUP
- exit 0
+
lctl set_param debug=0 || true
+
$CLEANUP
+
exit 0
fi
setup() {
fi
setup() {
- formatall
- setupall
+
formatall
+
setupall
}
$SETUP
}
$SETUP
@@
-40,8
+33,9
@@
fi
mkdir -p $DIR
# LU-482 Avert LVM and VM inability to flush caches in pre .33 kernels
mkdir -p $DIR
# LU-482 Avert LVM and VM inability to flush caches in pre .33 kernels
-if [ $LINUX_VERSION_CODE -lt $(kernel_version 2 6 33) ]; then
- sync; sleep 5; sync; sleep 5; sync; sleep 5
+if [ $LINUX_VERSION_CODE -lt $(version_code 2.6.33) ]; then
+ sync
+ do_facet $SINGLEMDS sync
fi
test_0() {
fi
test_0() {
@@
-112,6
+106,6
@@
test_3b() {
}
run_test 3b "mkdir cross-node dir (fail mds with inode)"
}
run_test 3b "mkdir cross-node dir (fail mds with inode)"
-equals_msg test complete, cleaning up
+complete $SECONDS
$CLEANUP
$CLEANUP