yetus-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject [4/7] yetus git commit: YETUS-93. tap needs to verify directories
Date Thu, 29 Oct 2015 15:02:51 GMT
YETUS-93. tap needs to verify directories

Signed-off-by: Sean Busbey <busbey@apache.org>


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/YETUS-83
Commit: 09ae5616ab249ffa8dbbadc18a2cbdbf2d830cec
Parents: d45ae41
Author: Allen Wittenauer <aw@apache.org>
Authored: Mon Oct 19 10:54:40 2015 -0700
Committer: Allen Wittenauer <aw@apache.org>
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}" \


Mime
View raw message