From patchwork Wed Dec 13 00:45:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luis Chamberlain X-Patchwork-Id: 10108539 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 789EB602B3 for ; Wed, 13 Dec 2017 00:47:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6A0B028563 for ; Wed, 13 Dec 2017 00:47:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5F0D428928; Wed, 13 Dec 2017 00:47:29 +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=unavailable 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 0DDA928563 for ; Wed, 13 Dec 2017 00:47:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752943AbdLMAp1 (ORCPT ); Tue, 12 Dec 2017 19:45:27 -0500 Received: from mail.kernel.org ([198.145.29.99]:37272 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752910AbdLMAp0 (ORCPT ); Tue, 12 Dec 2017 19:45:26 -0500 Received: from garbanzo.do-not-panic.com (c-73-15-241-2.hsd1.ca.comcast.net [73.15.241.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4952821869; Wed, 13 Dec 2017 00:45:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4952821869 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=mcgrof@kernel.org From: "Luis R. Rodriguez" To: fstests@vger.kernel.org Cc: linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org, "Luis R. Rodriguez" Subject: [PATCH 1/9] generic/381: use username fsgqa-381 Date: Tue, 12 Dec 2017 16:45:11 -0800 Message-Id: <20171213004519.29340-2-mcgrof@kernel.org> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20171213004519.29340-1-mcgrof@kernel.org> References: <20171213004519.29340-1-mcgrof@kernel.org> Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Some systems are not allowing usernames prefixed with a number now. One can however use numbers as a postfix so use that. Signed-off-by: Luis R. Rodriguez --- README | 2 +- tests/generic/381 | 16 ++++++++-------- tests/generic/381.out | 4 ++-- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/README b/README index ed69332e774e..e05142be1a87 100644 --- a/README +++ b/README @@ -20,7 +20,7 @@ _______________________ - run make - run make install - create fsgqa test user ("sudo useradd fsgqa") -- create 123456-fsgqa test user ("sudo useradd 123456-fsgqa") +- create fsgqa-381 test user ("sudo useradd fsgqa-381") ______________________ USING THE FSQA SUITE diff --git a/tests/generic/381 b/tests/generic/381 index 006f0d879638..cdc29c2e029e 100755 --- a/tests/generic/381 +++ b/tests/generic/381 @@ -3,7 +3,7 @@ # # Test xfs_quota when user or names beginning with digits. # For example, create a 'limit' for a user or group named -# '12345678-abcd', then query this user and group. +# 'fsgqa-381', then query this user and group. # #----------------------------------------------------------------------- # Copyright (c) 2015 Red Hat Inc. All Rights Reserved. @@ -53,9 +53,9 @@ _require_scratch _require_quota _require_xfs_quota_foreign -# need user and group named 123456-fsgqa -_require_user 123456-fsgqa -_require_group 123456-fsgqa +# need user and group named fsgqa-381 +_require_user fsgqa-381 +_require_group fsgqa-381 _scratch_mkfs >/dev/null 2>&1 _qmount_option "usrquota,grpquota" @@ -63,17 +63,17 @@ _qmount # user test echo "== user test ==" -$XFS_QUOTA_PROG -x -c "limit -u bsoft=100m bhard=200m 123456-fsgqa" $SCRATCH_MNT +$XFS_QUOTA_PROG -x -c "limit -u bsoft=100m bhard=200m fsgqa-381" $SCRATCH_MNT echo "=== quota command output ===" -$XFS_QUOTA_PROG -c "quota -u -b -N -v 123456-fsgqa" $SCRATCH_MNT | _filter_quota +$XFS_QUOTA_PROG -c "quota -u -b -N -v fsgqa-381" $SCRATCH_MNT | _filter_quota echo "=== report command output ===" $XFS_QUOTA_PROG -x -c "report -u -b -N" $SCRATCH_MNT | grep -v "^root " | _filter_quota # group test echo "== group test ==" -$XFS_QUOTA_PROG -x -c "limit -g bsoft=100m bhard=200m 123456-fsgqa" $SCRATCH_MNT +$XFS_QUOTA_PROG -x -c "limit -g bsoft=100m bhard=200m fsgqa-381" $SCRATCH_MNT echo "=== quota command output ===" -$XFS_QUOTA_PROG -c "quota -g -b -N -v 123456-fsgqa" $SCRATCH_MNT | _filter_quota +$XFS_QUOTA_PROG -c "quota -g -b -N -v fsgqa-381 " $SCRATCH_MNT | _filter_quota echo "=== report command output ===" $XFS_QUOTA_PROG -x -c "report -u -b -N" $SCRATCH_MNT | grep -v "^root " | _filter_quota diff --git a/tests/generic/381.out b/tests/generic/381.out index 50a1a27b0167..cc0ee4a1bb95 100644 --- a/tests/generic/381.out +++ b/tests/generic/381.out @@ -3,11 +3,11 @@ QA output created by 381 === quota command output === SCRATCH_DEV 0 102400 204800 00 [--------] SCRATCH_MNT === report command output === -123456-fsgqa 0 102400 204800 00 [--------] +fsgqa-381 0 102400 204800 00 [--------] == group test == === quota command output === SCRATCH_DEV 0 102400 204800 00 [--------] SCRATCH_MNT === report command output === -123456-fsgqa 0 102400 204800 00 [--------] +fsgqa-381 0 102400 204800 00 [--------]