From: Jia He <hejianet@gmail.com>
To: fstests@vger.kernel.org
Cc: eguan@redhat.com, Jia He <hejianet@gmail.com>
Subject: [PATCH V2 2/2] fstests: canonicalize the mount points by removing the trailing "/"
Date: Sat, 9 Jan 2016 11:54:53 +0800 [thread overview]
Message-ID: <1452311693-27529-3-git-send-email-hejianet@gmail.com> (raw)
In-Reply-To: <1452311693-27529-1-git-send-email-hejianet@gmail.com>
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>
---
common/config | 5 +++++
1 file changed, 5 insertions(+)
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
--
2.1.4
prev parent reply other threads:[~2016-01-09 3:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-09 3:54 [PATCH V2 0/2] fstests: help user to troubleshoot the re-mount issue quickly Jia He
2016-01-09 3:54 ` [PATCH V2 1/2] fstests: add user friendly prompts for already mounted points name Jia He
2016-01-09 3:54 ` Jia He [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1452311693-27529-3-git-send-email-hejianet@gmail.com \
--to=hejianet@gmail.com \
--cc=eguan@redhat.com \
--cc=fstests@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox