From patchwork Wed Jul 11 12:29:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Punit Agrawal X-Patchwork-Id: 942469 X-Patchwork-Delegate: petr.vorel@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=lists.linux.it (client-ip=2001:1418:10:5::2; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=arm.com Received: from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41Qdgb1Vr7zB4MN for ; Wed, 11 Jul 2018 22:30:03 +1000 (AEST) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 67C983E6B8A for ; Wed, 11 Jul 2018 14:30:00 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-7.smtp.seeweb.it (in-7.smtp.seeweb.it [IPv6:2001:4b78:1:20::7]) by picard.linux.it (Postfix) with ESMTP id B277F3E6BD6 for ; Wed, 11 Jul 2018 14:29:57 +0200 (CEST) Received: from foss.arm.com (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by in-7.smtp.seeweb.it (Postfix) with ESMTP id A4D3B20006C for ; Wed, 11 Jul 2018 14:29:55 +0200 (CEST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C3F9380D; Wed, 11 Jul 2018 05:29:54 -0700 (PDT) Received: from localhost (e105922-lin.cambridge.arm.com [10.1.206.33]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 68CEC3F5AD; Wed, 11 Jul 2018 05:29:54 -0700 (PDT) From: Punit Agrawal To: ltp@lists.linux.it Date: Wed, 11 Jul 2018 13:29:23 +0100 Message-Id: <20180711122925.24278-3-punit.agrawal@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180711122925.24278-1-punit.agrawal@arm.com> References: <20180711122925.24278-1-punit.agrawal@arm.com> X-ARM-No-Footer: FoSSMail X-Virus-Scanned: clamav-milter 0.99.2 at in-7.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=-0.0 required=7.0 tests=SPF_PASS autolearn=disabled version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on in-7.smtp.seeweb.it Subject: [LTP] [PATCH 2/4] quota_remount_test01: Add explicit check for dependencies X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.18 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" quota_remount_test01 doesn't check for dependencies before execution. Add explicit checks for quotacheck and quotaon and bail out if they are not present. Signed-off-by: Punit Agrawal --- testcases/kernel/fs/quota_remount/quota_remount_test01.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/testcases/kernel/fs/quota_remount/quota_remount_test01.sh b/testcases/kernel/fs/quota_remount/quota_remount_test01.sh index 24f41aec1..8fa9ffc9f 100755 --- a/testcases/kernel/fs/quota_remount/quota_remount_test01.sh +++ b/testcases/kernel/fs/quota_remount/quota_remount_test01.sh @@ -41,6 +41,8 @@ export TCID=quota_remount_test01 export TST_TOTAL=1 export TST_COUNT=0 +. test.sh + if [ -z $TMPDIR ] then TMPDIR=/tmp @@ -58,6 +60,8 @@ if [ ! -d /proc/sys/fs/quota ]; then exit 0 fi +tst_check_cmds quotacheck quotaon + die() { echo >&2 $2