You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hop.apache.org by ha...@apache.org on 2020/12/07 19:28:13 UTC

[incubator-hop] branch master updated: HOP-2122: add CDATA blocks around logs

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

hansva pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-hop.git


The following commit(s) were added to refs/heads/master by this push:
     new e71fb1b  HOP-2122: add CDATA blocks around logs
     new e78bac6  Merge pull request #446 from hansva/HOP-2122
e71fb1b is described below

commit e71fb1b9f2f326f0e474b865f766d505ccc4fd61
Author: Hans Van Akelyen <ha...@gmail.com>
AuthorDate: Mon Dec 7 20:26:20 2020 +0100

    HOP-2122: add CDATA blocks around logs
---
 integration-tests/scripts/run-tests.sh | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/integration-tests/scripts/run-tests.sh b/integration-tests/scripts/run-tests.sh
index c584214..dd58354 100755
--- a/integration-tests/scripts/run-tests.sh
+++ b/integration-tests/scripts/run-tests.sh
@@ -14,7 +14,11 @@ skipped_counter=0
 failures_counter=0
 spacer="==========================================="
 
+#cleanup Temp
+echo "" > /tmp/testcases
+echo "" > /tmp/surefire_report.xml
 
+#Loop over project folders
 for d in $current_dir/../*/ ; do
     if [[ "$d" != *"scripts/" ]]; then
 
@@ -56,10 +60,14 @@ for d in $current_dir/../*/ ; do
             echo "<testcase name=\"$test_name\" time=\"$test_duration\">" >> /tmp/testcases
             echo "<failure type=\"$test_name\"></failure>" >> /tmp/testcases
             echo "<system-out>" >> /tmp/testcases
+            echo "<![CDATA["  >> /tmp/testcases
             cat /tmp/test_output >> /tmp/testcases
+            echo "]]>"  >> /tmp/testcases
             echo "</system-out>" >> /tmp/testcases
             echo "<system-err>" >> /tmp/testcases
+            echo "<![CDATA["  >> /tmp/testcases
             cat /tmp/test_output_err >> /tmp/testcases
+            echo "]]>"  >> /tmp/testcases
             echo "</system-err>" >> /tmp/testcases
             echo "</testcase>" >> /tmp/testcases
 
@@ -67,7 +75,9 @@ for d in $current_dir/../*/ ; do
             #Create surefire xml success
             echo "<testcase name=\"$test_name\" time=\"$test_duration\">" >> /tmp/testcases
             echo "<system-out>" >> /tmp/testcases
+            echo "<![CDATA["  >> /tmp/testcases
             cat /tmp/test_output >> /tmp/testcases
+            echo "]]>"  >> /tmp/testcases
             echo "</system-out>" >> /tmp/testcases
             echo "</testcase>" >> /tmp/testcases
         fi