You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@yetus.apache.org by aw...@apache.org on 2019/01/09 23:39:35 UTC

[yetus] 02/04: YETUS-765. test-patch generating linecomments errors

This is an automated email from the ASF dual-hosted git repository.

aw pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/yetus.git

commit 4c741d411a28dae9e021b1456ea989fc5f1222c0
Author: Allen Wittenauer <aw...@apache.org>
AuthorDate: Tue Jan 8 06:00:14 2019 -0800

    YETUS-765. test-patch generating linecomments errors
    
    Signed-off-by: Sean Busbey <bu...@apache.org>
---
 precommit/src/main/shell/test-patch.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/precommit/src/main/shell/test-patch.sh b/precommit/src/main/shell/test-patch.sh
index b361289..52a5579 100755
--- a/precommit/src/main/shell/test-patch.sh
+++ b/precommit/src/main/shell/test-patch.sh
@@ -2376,6 +2376,10 @@ function bugsystem_linecomments_trigger
     return
   fi
 
+  if [[ ! -f "${PATCH_DIR}/linecomments-in.txt" ]]; then
+    return 0
+  fi
+
   # sort the file such that all files and lines are now next to each other
   sort "${PATCH_DIR}/linecomments-in.txt" > "${PATCH_DIR}/linecomments-sorted.txt"