Return-Path: X-Original-To: apmail-yetus-commits-archive@minotaur.apache.org Delivered-To: apmail-yetus-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 60ECF1844A for ; Thu, 29 Oct 2015 14:55:02 +0000 (UTC) Received: (qmail 19423 invoked by uid 500); 29 Oct 2015 14:55:02 -0000 Delivered-To: apmail-yetus-commits-archive@yetus.apache.org Received: (qmail 19405 invoked by uid 500); 29 Oct 2015 14:55:02 -0000 Mailing-List: contact commits-help@yetus.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@yetus.apache.org Delivered-To: mailing list commits@yetus.apache.org Received: (qmail 19396 invoked by uid 99); 29 Oct 2015 14:55:02 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Oct 2015 14:55:02 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 2A78CE13D7; Thu, 29 Oct 2015 14:55:02 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: aw@apache.org To: commits@yetus.apache.org Message-Id: <584fc4fa1e014c6d9883e54ca84e8612@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: yetus git commit: YETUS-93. tap needs to verify directories Date: Thu, 29 Oct 2015 14:55:02 +0000 (UTC) Repository: yetus Updated Branches: refs/heads/master d45ae4124 -> 09ae5616a YETUS-93. tap needs to verify directories Signed-off-by: Sean Busbey Project: http://git-wip-us.apache.org/repos/asf/yetus/repo Commit: http://git-wip-us.apache.org/repos/asf/yetus/commit/09ae5616 Tree: http://git-wip-us.apache.org/repos/asf/yetus/tree/09ae5616 Diff: http://git-wip-us.apache.org/repos/asf/yetus/diff/09ae5616 Branch: refs/heads/master Commit: 09ae5616ab249ffa8dbbadc18a2cbdbf2d830cec Parents: d45ae41 Author: Allen Wittenauer Authored: Mon Oct 19 10:54:40 2015 -0700 Committer: Allen Wittenauer Committed: Thu Oct 29 07:54:44 2015 -0700 ---------------------------------------------------------------------- precommit/test-patch.d/tap.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/yetus/blob/09ae5616/precommit/test-patch.d/tap.sh ---------------------------------------------------------------------- diff --git a/precommit/test-patch.d/tap.sh b/precommit/test-patch.d/tap.sh index 7ced908..8de68f1 100755 --- a/precommit/test-patch.d/tap.sh +++ b/precommit/test-patch.d/tap.sh @@ -19,7 +19,7 @@ add_test_format tap TAP_FAILED_TESTS="" TAP_LOG_DIR="target/tap" -function tap_process_args +function tap_parse_args { declare i @@ -49,7 +49,9 @@ function tap_process_tests declare module_failed_tests declare filenames - filenames=$(find "${TAP_LOG_DIR}" -type f -exec "${GREP}" -l -E "^not ok" {} \;) + if [[ -d "${TAP_LOG_DIR}" ]]; then + filenames=$(find "${TAP_LOG_DIR}" -type f -exec "${GREP}" -l -E "^not ok" {} \;) + fi if [[ -n "${filenames}" ]]; then module_failed_tests=$(echo "${filenames}" \