Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id EAE2C431FAF for ; Fri, 7 Jun 2013 14:37:38 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id u3fq8HRNj8Dg for ; Fri, 7 Jun 2013 14:37:31 -0700 (PDT) Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) by olra.theworths.org (Postfix) with ESMTP id 9289A431FAE for ; Fri, 7 Jun 2013 14:37:31 -0700 (PDT) Received: by guru.guru-group.fi (Postfix, from userid 501) id F23491001F1; Sat, 8 Jun 2013 00:37:30 +0300 (EEST) From: Tomi Ollila To: notmuch@notmuchmail.org Subject: [PATCH 1/1] test/basic: replaced find -perm +111 with portable alternative Date: Sat, 8 Jun 2013 00:37:29 +0300 Message-Id: <1370641049-17390-1-git-send-email-tomi.ollila@iki.fi> X-Mailer: git-send-email 1.8.0 Cc: tomi.ollila@iki.fi X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jun 2013 21:37:41 -0000 The find option syntax `-perm +111` is deprecated gnu find feature. The replacement `( -perm -100 -o -perm -10 -o -perm 1 )` should also work outside of the GNU domain. --- test/basic | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/basic b/test/basic index 1b2a7d2..64eb7d7 100755 --- a/test/basic +++ b/test/basic @@ -53,7 +53,8 @@ test_expect_code 2 'failure to clean up causes the test to fail' ' test_begin_subtest 'Ensure that all available tests will be run by notmuch-test' eval $(sed -n -e '/^TESTS="$/,/^"$/p' $TEST_DIRECTORY/notmuch-test) tests_in_suite=$(for i in $TESTS; do echo $i; done | sort) -available=$(find "$TEST_DIRECTORY" -maxdepth 1 -type f -perm +111 \ +available=$(find "$TEST_DIRECTORY" -maxdepth 1 -type f \ + '(' -perm -100 -o -perm -10 -o -perm -1 ')' \ ! -name aggregate-results.sh \ ! -name arg-test \ ! -name hex-xcode \ -- 1.8.0