From patchwork Wed Feb 10 01:49:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Theodore Ts'o X-Patchwork-Id: 8267811 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 C17019F38B for ; Wed, 10 Feb 2016 01:50:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E17AE20220 for ; Wed, 10 Feb 2016 01:50:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1779C20254 for ; Wed, 10 Feb 2016 01:50:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756108AbcBJBuS (ORCPT ); Tue, 9 Feb 2016 20:50:18 -0500 Received: from imap.thunk.org ([74.207.234.97]:51034 "EHLO imap.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756097AbcBJBuN (ORCPT ); Tue, 9 Feb 2016 20:50:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=thunk.org; s=ef5046eb; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From; bh=3OujulG3d2Vj1IKfL3DI1AoD4tImn3LGRwZfC79ffTQ=; b=nBqF3DfLt/w+rrPbGCx+RDESVQYSwe4REy0taqvikA9jxfjBvuWX6tFvOZMxNj+wMbmcY/gpvFKsNaWOqse3+LYBqId0ZKk9R3aW1WFpBYcW39DjmIGytqX16fu22SyW7QKvYldcfQXO0AzNaM2PMvMhD8CAcL/Ikf/ILBd2U48=; Received: from root (helo=closure.thunk.org) by imap.thunk.org with local-esmtp (Exim 4.84) (envelope-from ) id 1aTJv0-0005TD-RJ; Wed, 10 Feb 2016 01:50:10 +0000 Received: by closure.thunk.org (Postfix, from userid 15806) id D3827820089; Tue, 9 Feb 2016 20:50:09 -0500 (EST) From: Theodore Ts'o To: fstests@vger.kernel.org Cc: hughd@google.com, Theodore Ts'o Subject: [PATCH 01/12] check: avoid error messages of tests/$FS does not exist Date: Tue, 9 Feb 2016 20:49:50 -0500 Message-Id: <1455069001-17846-2-git-send-email-tytso@mit.edu> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1455069001-17846-1-git-send-email-tytso@mit.edu> References: <1455069001-17846-1-git-send-email-tytso@mit.edu> X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on imap.thunk.org); SAEximRunCond expanded to false Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham 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 There are no tmpfs specific tests, so tests/tmpfs does not exist. Avoid print an error message caused by trying to read the file tests/tmpfs/group (for example). Signed-off-by: Theodore Ts'o --- check | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/check b/check index c40d2a8..2986d84 100755 --- a/check +++ b/check @@ -90,6 +90,9 @@ get_group_list() grp=$1 for d in $SRC_GROUPS $FSTYP; do + if ! test -d "$SRC_DIR/$d" ; then + continue + fi l=$(sed -n < $SRC_DIR/$d/group \ -e 's/#.*//' \ -e 's/$/ /' \ @@ -105,6 +108,9 @@ get_all_tests() { touch $tmp.list for d in $SRC_GROUPS $FSTYP; do + if ! test -d "$SRC_DIR/$d" ; then + continue + fi ls $SRC_DIR/$d/* | \ grep -v "\..*" | \ grep "^$SRC_DIR/$d/$VALID_TEST_NAME"| \