From: Eryu Guan <eguan@redhat.com>
To: Benjamin Coddington <bcodding@redhat.com>
Cc: fstests@vger.kernel.org
Subject: Re: [PATCH] generic/317: fixup grep for qa_user_id
Date: Tue, 11 Oct 2016 18:42:22 +0800 [thread overview]
Message-ID: <20161011104222.GS27776@eguan.usersys.redhat.com> (raw)
In-Reply-To: <fb1905dab09a7e9d9d8952da56d90aaba2403a57.1476181339.git.bcodding@redhat.com>
On Tue, Oct 11, 2016 at 06:26:38AM -0400, Benjamin Coddington wrote:
> The grep for $qa_user_id can return more than one entry.
>
> Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
> ---
> tests/generic/317 | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/generic/317 b/tests/generic/317
> index 9d9499ba04dd..ddaa6b59afc5 100755
> --- a/tests/generic/317
> +++ b/tests/generic/317
> @@ -61,7 +61,7 @@ _require_scratch
> _require_user
> _require_ugid_map
> _require_userns
> -qa_user_id=`grep $qa_user /etc/passwd |awk -F: '{print $3}'`
> +qa_user_id=`grep ^${qa_user}: /etc/passwd |awk -F: '{print $3}'`
Hi Ben,
I have a patch[1] to fix this too (in a different way), and it's in my
last pull request[2] to Dave, though he hasn't pushed them to upstream
yet. Does it work for you?
Thanks,
Eryu
[1] http://www.spinics.net/lists/fstests/msg03977.html
[2] http://www.spinics.net/lists/fstests/msg04095.html
>
> _filter_output()
> {
> --
> 2.5.5
>
> --
> To unsubscribe from this list: send the line "unsubscribe fstests" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2016-10-11 10:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-11 10:26 [PATCH] generic/317: fixup grep for qa_user_id Benjamin Coddington
2016-10-11 10:42 ` Eryu Guan [this message]
2016-10-11 11:58 ` Benjamin Coddington
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=20161011104222.GS27776@eguan.usersys.redhat.com \
--to=eguan@redhat.com \
--cc=bcodding@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