On Thu, Jan 07, 2016 at 02:37:28PM +0800, Jia He wrote: > This adds comments to prevent user from adding "/" to the end of TEST_DIR and > SCRATCH_MNT Instead of adding comments, how about removing the trailing "/" in the code, something like: diff --git a/common/config b/common/config index e82d279..cb34fd7 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 Thanks, Eryu -- To unsubscribe from this list: send the line "unsubscribe fstests" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html