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 <[email protected]>
AuthorDate: Tue May 3 11:25:36 2022 -0700
YETUS-1174. missing report name check in junit (#272)
Signed-off-by: Nick Dimiduk <[email protected]>
---
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