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 945F6182F3 for ; Tue, 20 Oct 2015 15:06:17 +0000 (UTC) Received: (qmail 94958 invoked by uid 500); 20 Oct 2015 15:06:17 -0000 Delivered-To: apmail-yetus-commits-archive@yetus.apache.org Received: (qmail 94912 invoked by uid 500); 20 Oct 2015 15:06:17 -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 94811 invoked by uid 99); 20 Oct 2015 15:06:17 -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; Tue, 20 Oct 2015 15:06:17 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 3D6A1E0BCC; Tue, 20 Oct 2015 15:06:17 +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: Tue, 20 Oct 2015 15:06:25 -0000 Message-Id: <6089c4dae294403c9e33ebbd1dfaf8b9@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [9/9] 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/ee2a1910 Tree: http://git-wip-us.apache.org/repos/asf/yetus/tree/ee2a1910 Diff: http://git-wip-us.apache.org/repos/asf/yetus/diff/ee2a1910 Branch: refs/heads/YETUS-83 Commit: ee2a191014423a90a1c312989b72372be31350ae Parents: 88a5cc1 Author: Allen Wittenauer Authored: Mon Oct 19 10:54:40 2015 -0700 Committer: Allen Wittenauer Committed: Tue Oct 20 08:05:50 2015 -0700 ---------------------------------------------------------------------- dev-support/test-patch.d/tap.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/yetus/blob/ee2a1910/dev-support/test-patch.d/tap.sh ---------------------------------------------------------------------- diff --git a/dev-support/test-patch.d/tap.sh b/dev-support/test-patch.d/tap.sh index 7ced908..8de68f1 100755 --- a/dev-support/test-patch.d/tap.sh +++ b/dev-support/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}" \