From: Eryu Guan <eguan@redhat.com>
To: fstests@vger.kernel.org
Cc: Eryu Guan <eguan@redhat.com>
Subject: [PATCH 2/3] common: no need to parse config file in new
Date: Mon, 11 Jan 2016 19:32:03 +0800 [thread overview]
Message-ID: <1452511924-21872-3-git-send-email-eguan@redhat.com> (raw)
In-Reply-To: <1452511924-21872-1-git-send-email-eguan@redhat.com>
I saw "new" failed the TEST_DIR/SCRATCH_MNT validation when TEST_DIR or
SCRATCH_MNT points to directory, which is needed in overlayfs testing.
"new" only generates test template and doesn't need common/config to
parse and validate TEST_DEV/TEST_DIR etc., so just returns after setting
all needed commands.
Signed-off-by: Eryu Guan <eguan@redhat.com>
---
common/config | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/common/config b/common/config
index cb34fd7..9aa06a3 100644
--- a/common/config
+++ b/common/config
@@ -270,6 +270,11 @@ fi
rm -f /tmp/crc_check.img
export XFS_MKFS_HAS_NO_META_SUPPORT
+# new doesn't need config file parsed, we can stop here
+if [ "$iam" == "new" ]; then
+ return 0
+fi
+
_mount_opts()
{
case $FSTYP in
--
2.5.0
next prev parent reply other threads:[~2016-01-11 11:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-11 11:32 [PATCH 0/3] some random fixes and cleanups Eryu Guan
2016-01-11 11:32 ` [PATCH 1/3] generic/23[23]: some cleanups Eryu Guan
2016-01-11 11:32 ` Eryu Guan [this message]
2016-01-12 8:31 ` [PATCH v2] common: no need to parse config file in new Eryu Guan
2016-01-11 11:32 ` [PATCH 3/3] new: create a default .out file Eryu Guan
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=1452511924-21872-3-git-send-email-eguan@redhat.com \
--to=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