From patchwork Thu Apr 6 05:49:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amir Goldstein X-Patchwork-Id: 9666049 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 997EF602B8 for ; Thu, 6 Apr 2017 05:49:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8A950284FE for ; Thu, 6 Apr 2017 05:49:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7F7C42856E; Thu, 6 Apr 2017 05:49:18 +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.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID 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 30773284FE for ; Thu, 6 Apr 2017 05:49:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753699AbdDFFtR (ORCPT ); Thu, 6 Apr 2017 01:49:17 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:32881 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753424AbdDFFtR (ORCPT ); Thu, 6 Apr 2017 01:49:17 -0400 Received: by mail-wr0-f194.google.com with SMTP id g19so8045199wrb.0; Wed, 05 Apr 2017 22:49:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=vNgzg60SLDgR7RjAjjNVJHMIWYP3xeJsrDrmhbI3T2o=; b=EBUnYmPFbOym83EMV0yJ3cqnQwFdlFm0DW2tSbdsk7KjLvxADf+uqIHAL/6d5Zs8nk XSTAhPVrVVgejOcuBLtgeNwDDSfMdbLMzeBcPfeIj9lSmCALeTU6WqI4wp7B/UKwAjRB 2u2IHGyJPZIMRtB0fFxcmNRcydXsREW3QvDtfo8lAx6KKM8MuRHnxjGHh+e9+K0Cjk81 LgQyObZBVjLjkWV6vBW0IXZlXrdJoSth2COy1dwDiFgAkzjtMGNot8Fm14cW/uQASHeo 3ZFMcfRk6OITie4nHC5zJ/X7TuFCU0ywrChUIswykbazIw4oAdWkWTHZECUQO5EPf8EP 4Trw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=vNgzg60SLDgR7RjAjjNVJHMIWYP3xeJsrDrmhbI3T2o=; b=KsPtybjbzXGhXjVv3wmwxA+WMcUUXTCOMB25pJdHnq6eo37LPUnGdpl56OJ19ZIVGh KP71CVpaVY8XM2nz45gyFQzsBo4VNBTofzQ/F9YIcjswnM/0rdri4/H7MyNb+uYfY+0i UPCYLtSRyK7YrS8W3fv+lMho9un1xbrQM29U6ikF/q0ERT5EJlBnUiDhKHjP9/ccErRg 1tKTnsiQ8uJ0aXJKbKQSo2Fi9J3MWecTyCq0qYoE375KMkTywIK0Xm2iD4Tx5SQX0lH1 AuVsvKBBFarekAk2j6rOsCoZl3snPCk2bG9t7P10OcM5CjHvQfm5zp+Mr2Fs1G9GrZAq 2/9w== X-Gm-Message-State: AFeK/H1knRmqmFiXhG5wlp8peVBT1AgphayFjcNTuS4tM0714xEKuJhb LAisLTGLmY5DAQ== X-Received: by 10.28.217.142 with SMTP id q136mr22063469wmg.48.1491457755668; Wed, 05 Apr 2017 22:49:15 -0700 (PDT) Received: from amir-VirtualBox.lan (bzq-79-176-107-16.red.bezeqint.net. [79.176.107.16]) by smtp.gmail.com with ESMTPSA id l90sm24983968wmi.25.2017.04.05.22.49.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 05 Apr 2017 22:49:15 -0700 (PDT) From: Amir Goldstein To: Eryu Guan Cc: Miklos Szeredi , Xiong Zhou , linux-unionfs@vger.kernel.org, fstests@vger.kernel.org Subject: [PATCH v4 2/3] generic/079: use _require_test_program Date: Thu, 6 Apr 2017 08:49:19 +0300 Message-Id: <1491457760-9240-2-git-send-email-amir73il@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1491457760-9240-1-git-send-email-amir73il@gmail.com> References: <1491457760-9240-1-git-send-email-amir73il@gmail.com> Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP use _require_test_program helper and specify both +i and +a to _required_chattr, because test sets them both. Also remove unneeded _scratch_unmount from _cleanup. Signed-off-by: Amir Goldstein --- tests/generic/079 | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/generic/079 b/tests/generic/079 index 5cceeba..c2db6bf 100755 --- a/tests/generic/079 +++ b/tests/generic/079 @@ -37,7 +37,6 @@ _cleanup() cd / echo "*** cleaning up" $timmutable -r $SCRATCH_MNT/$seq - _scratch_unmount } # get standard environment, filters and checks @@ -48,11 +47,10 @@ _cleanup() _supported_fs generic _supported_os Linux -_require_chattr i +_require_chattr ia +_require_test_program "t_immutable" _require_scratch -[ -x $timmutable ] || _notrun "t_immutable was not built for this platform" - # real QA test starts here _scratch_mkfs >/dev/null 2>&1 || _fail "mkfs failed" _scratch_mount || _fail "mount failed"