From dfe582dd396f16ddce1909baab7376e00af07792 Mon Sep 17 00:00:00 2001 From: Jia He Date: Mon, 11 Jan 2016 15:13:20 +1100 Subject: [PATCH] fstests: canonicalize the mount points by removing the trailing "/" removing all the trailing "/"s of mounting point name by readlink Suggested-by: Eryu Guan Signed-off-by: Jia He Reviewed-by: Dave Chinner Signed-off-by: Dave Chinner --- common/config | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/config b/common/config index e82d2795..cb34fd79 100644 --- a/common/config +++ b/common/config @@ -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 -- 2.39.5