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 AC5F818872 for ; Wed, 28 Oct 2015 15:27:19 +0000 (UTC) Received: (qmail 38612 invoked by uid 500); 28 Oct 2015 15:27:19 -0000 Delivered-To: apmail-yetus-commits-archive@yetus.apache.org Received: (qmail 38572 invoked by uid 500); 28 Oct 2015 15:27:19 -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 38369 invoked by uid 99); 28 Oct 2015 15:27:19 -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; Wed, 28 Oct 2015 15:27:19 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 125ECE0514; Wed, 28 Oct 2015 15:27:19 +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 Date: Wed, 28 Oct 2015 15:27:29 -0000 Message-Id: <825011b032d047e0952550efa28884a8@git.apache.org> In-Reply-To: <5fab810888f74cffb940146c409c2eb3@git.apache.org> References: <5fab810888f74cffb940146c409c2eb3@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [12/14] yetus git commit: YETUS-93. tap needs to verify directories YETUS-93. tap needs to verify directories Project: http://git-wip-us.apache.org/repos/asf/yetus/repo Commit: http://git-wip-us.apache.org/repos/asf/yetus/commit/7e6c769c Tree: http://git-wip-us.apache.org/repos/asf/yetus/tree/7e6c769c Diff: http://git-wip-us.apache.org/repos/asf/yetus/diff/7e6c769c Branch: refs/heads/YETUS-83 Commit: 7e6c769c23744007942c55d5fba96e4139f42d01 Parents: 2138831 Author: Allen Wittenauer Authored: Mon Oct 19 10:54:40 2015 -0700 Committer: Allen Wittenauer Committed: Wed Oct 28 08:23:22 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/7e6c769c/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}" \