From patchwork Tue Oct 11 10:26:38 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Coddington X-Patchwork-Id: 9370383 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D322360487 for ; Tue, 11 Oct 2016 10:28:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C81C028EC3 for ; Tue, 11 Oct 2016 10:28:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BC66828EF2; Tue, 11 Oct 2016 10:28:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 57D1628EC3 for ; Tue, 11 Oct 2016 10:28:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751203AbcJKK2E (ORCPT ); Tue, 11 Oct 2016 06:28:04 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47518 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751027AbcJKK2E (ORCPT ); Tue, 11 Oct 2016 06:28:04 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 2F27A12B8 for ; Tue, 11 Oct 2016 10:26:40 +0000 (UTC) Received: from bcodding.csb (vpn-60-205.rdu2.redhat.com [10.10.60.205]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u9BAQdXe012190 for ; Tue, 11 Oct 2016 06:26:40 -0400 Received: by bcodding.csb (Postfix, from userid 24008) id 20869108F7EF; Tue, 11 Oct 2016 06:26:38 -0400 (EDT) From: Benjamin Coddington To: fstests@vger.kernel.org Subject: [PATCH] generic/317: fixup grep for qa_user_id Date: Tue, 11 Oct 2016 06:26:38 -0400 Message-Id: X-Scanned-By: MIMEDefang 2.68 on 10.5.11.26 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Tue, 11 Oct 2016 10:26:40 +0000 (UTC) Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The grep for $qa_user_id can return more than one entry. Signed-off-by: Benjamin Coddington --- 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() {