mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user