diff --git a/lustre/tests/replay-dual.sh b/lustre/tests/replay-dual.sh index 5fa871ef5918209af16e5cb1e9f3fcb8ae9c56f3..8f49596afdf89cf0687feaa0aa76da99b437aa47 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]* @@ -411,5 +417,6 @@ run_test 20 "recovery time is not increasing" 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