From patchwork Mon Jan 11 11:32:03 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eryu Guan X-Patchwork-Id: 8002611 Return-Path: X-Original-To: patchwork-fstests@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id D48659F1C0 for ; Mon, 11 Jan 2016 11:32:36 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0B40D202E9 for ; Mon, 11 Jan 2016 11:32:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3BCD1202B8 for ; Mon, 11 Jan 2016 11:32:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759703AbcAKLce (ORCPT ); Mon, 11 Jan 2016 06:32:34 -0500 Received: from mx1.redhat.com ([209.132.183.28]:46396 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759701AbcAKLcd (ORCPT ); Mon, 11 Jan 2016 06:32:33 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id 8AF3E8E222 for ; Mon, 11 Jan 2016 11:32:33 +0000 (UTC) Received: from localhost (dhcp-13-211.nay.redhat.com [10.66.13.211]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u0BBWUFM026123; Mon, 11 Jan 2016 06:32:32 -0500 From: Eryu Guan To: fstests@vger.kernel.org Cc: Eryu Guan Subject: [PATCH 2/3] common: no need to parse config file in new Date: Mon, 11 Jan 2016 19:32:03 +0800 Message-Id: <1452511924-21872-3-git-send-email-eguan@redhat.com> In-Reply-To: <1452511924-21872-1-git-send-email-eguan@redhat.com> References: <1452511924-21872-1-git-send-email-eguan@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP I saw "new" failed the TEST_DIR/SCRATCH_MNT validation when TEST_DIR or SCRATCH_MNT points to directory, which is needed in overlayfs testing. "new" only generates test template and doesn't need common/config to parse and validate TEST_DEV/TEST_DIR etc., so just returns after setting all needed commands. Signed-off-by: Eryu Guan --- common/config | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/config b/common/config index cb34fd7..9aa06a3 100644 --- a/common/config +++ b/common/config @@ -270,6 +270,11 @@ fi rm -f /tmp/crc_check.img export XFS_MKFS_HAS_NO_META_SUPPORT +# new doesn't need config file parsed, we can stop here +if [ "$iam" == "new" ]; then + return 0 +fi + _mount_opts() { case $FSTYP in