You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@yetus.apache.org by aw...@apache.org on 2022/05/03 18:25:41 UTC

[yetus] branch main updated: YETUS-1174. missing report name check in junit (#272)

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

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


The following commit(s) were added to refs/heads/main by this push:
     new 0a26e40b YETUS-1174. missing report name check in junit (#272)
0a26e40b is described below

commit 0a26e40b52fc209731a8e5570be12938bbb73706
Author: Allen Wittenauer <aw...@apache.org>
AuthorDate: Tue May 3 11:25:36 2022 -0700

    YETUS-1174. missing report name check in junit (#272)
    
    Signed-off-by: Nick Dimiduk <nd...@apache.org>
---
 precommit/src/main/shell/plugins.d/junit.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/precommit/src/main/shell/plugins.d/junit.sh b/precommit/src/main/shell/plugins.d/junit.sh
index 9824e517..0f52a13b 100755
--- a/precommit/src/main/shell/plugins.d/junit.sh
+++ b/precommit/src/main/shell/plugins.d/junit.sh
@@ -253,6 +253,10 @@ function junit_linecomments_end
   declare testinfo=$1
   declare linecount
 
+  if [[ -z "${JUNIT_REPORT_XML}" ]]; then
+    return
+  fi
+
   if [[ "${JUNIT_REPORT_STYLE}" != "line" ]]; then
     return
   fi