diff --git a/lustre/tests/replay-dual.sh b/lustre/tests/replay-dual.sh index 8806f2ab0e415be118a5c0fa23dee8f3194c020b..d2285009e593c03dec2aa90f3d4872e543e268e2 100755 --- a/lustre/tests/replay-dual.sh +++ b/lustre/tests/replay-dual.sh @@ -31,6 +31,12 @@ remote_mds_nodsh && skip "remote MDS with nodsh" && exit 0 build_test_filter check_and_setup_lustre +MOUNTED=$(mounted_lustre_filesystems) +if ! $(echo $MOUNTED | grep -w -q $MOUNT2); then + zconf_mount $HOSTNAME $MOUNT2 + MOUNTED2=yes +fi + assert_DIR rm -rf $DIR/[df][0-9]* @@ -539,6 +545,7 @@ run_test 21b "commit on sharing, two clients" equals_msg `basename $0`: test complete, cleaning up SLEEP=$((`date +%s` - $NOW)) [ $SLEEP -lt $TIMEOUT ] && sleep $SLEEP +[ "$MOUNTED2" = yes ] && zconf_umount $HOSTNAME $MOUNT2 || true check_and_cleanup_lustre [ -f "$TESTSUITELOG" ] && cat $TESTSUITELOG || true