fstests: canonicalize the mount points by removing the trailing "/"

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>
This commit is contained in:
Jia He
2016-01-11 15:13:20 +11:00
committed by Dave Chinner
parent 315e6b4ed4
commit dfe582dd39
+5
View 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