yetus-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject [yetus] 02/04: YETUS-765. test-patch generating linecomments errors
Date Wed, 09 Jan 2019 23:39:35 GMT
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 <busbey@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"
 


Mime
View raw message