* [PATCH] generic/317: fixup grep for qa_user_id
@ 2016-10-11 10:26 Benjamin Coddington
2016-10-11 10:42 ` Eryu Guan
0 siblings, 1 reply; 3+ messages in thread
From: Benjamin Coddington @ 2016-10-11 10:26 UTC (permalink / raw)
To: fstests
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}'`
_filter_output()
{
--
2.5.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] generic/317: fixup grep for qa_user_id
2016-10-11 10:26 [PATCH] generic/317: fixup grep for qa_user_id Benjamin Coddington
@ 2016-10-11 10:42 ` Eryu Guan
2016-10-11 11:58 ` Benjamin Coddington
0 siblings, 1 reply; 3+ messages in thread
From: Eryu Guan @ 2016-10-11 10:42 UTC (permalink / raw)
To: Benjamin Coddington; +Cc: fstests
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] generic/317: fixup grep for qa_user_id
2016-10-11 10:42 ` Eryu Guan
@ 2016-10-11 11:58 ` Benjamin Coddington
0 siblings, 0 replies; 3+ messages in thread
From: Benjamin Coddington @ 2016-10-11 11:58 UTC (permalink / raw)
To: Eryu Guan; +Cc: fstests
On 11 Oct 2016, at 6:42, Eryu Guan wrote:
> 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?
Yes, that'll work. Sorry for missing it.
Ben
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-10-11 12:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-11 10:26 [PATCH] generic/317: fixup grep for qa_user_id Benjamin Coddington
2016-10-11 10:42 ` Eryu Guan
2016-10-11 11:58 ` Benjamin Coddington
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox