Add test for correct $SCRATCH_MNT into _require_scratch
authorJan Kara <jack@suse.cz>
Wed, 21 Jul 2010 16:50:52 +0000 (18:50 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 21 Jul 2010 16:52:31 +0000 (18:52 +0200)
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Christoph Hellwig <hch@lst.de>
common.rc

index 6bf1e12782ec0f1de82223924d87e1a8b746a3a3..72997f9c0983ce4074420087b164803c2410bace 100644 (file)
--- a/common.rc
+++ b/common.rc
@@ -703,6 +703,10 @@ _require_scratch()
                 then
                     _notrun "this test requires a valid \$SCRATCH_DEV"
                 fi
+               if [ ! -d "$SCRATCH_MNT" ]
+               then
+                    _notrun "this test requires a valid \$SCRATCH_MNT"
+               fi
                 ;;
     esac