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/c746ce5f
Tree: http://git-wip-us.apache.org/repos/asf/yetus/tree/c746ce5f
Diff: http://git-wip-us.apache.org/repos/asf/yetus/diff/c746ce5f

Branch: refs/heads/YETUS-83
Commit: c746ce5f25a83de883aca6ac9de13543387c7e38
Parents: 80f4472
Author: Allen Wittenauer <[email protected]>
Authored: Mon Oct 19 10:54:40 2015 -0700
Committer: Allen Wittenauer <[email protected]>
Committed: Tue Oct 20 20:33:01 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/c746ce5f/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}" \

Reply via email to