]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
fstests: canonicalize the mount points by removing the trailing "/"
authorJia He <hejianet@gmail.com>
Mon, 11 Jan 2016 04:13:20 +0000 (15:13 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 11 Jan 2016 04:13:20 +0000 (15:13 +1100)
removing all the trailing "/"s of mounting point name by readlink

Suggested-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Jia He <hejianet@gmail.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
common/config

index e82d2795aac48b64faf76d2a9733858fd68b499f..cb34fd79a1213c4eaa8da84a43befbd93d67ac3b 100644 (file)
@@ -551,5 +551,10 @@ if [ -z "$CONFIG_INCLUDED" ]; then
        [ -z "$FSCK_OPTIONS" ] && _fsck_opts
 fi
 
+# canonicalize the mount points
+# this follows symlinks and removes all trailing "/"s
+export TEST_DIR=`readlink -e "$TEST_DIR"`
+export SCRATCH_MNT=`readlink -e "$SCRATCH_MNT"`
+
 # make sure this script returns success
 /bin/true