[glib/wip/3v1n0/support-can-fail-tests] ci: Remove not-printable chars from generated junit file



commit 36d1e9fc1ef80029aaa1b95a03e32169e854bcc7
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date:   Thu Oct 20 06:27:13 2022 +0200

    ci: Remove not-printable chars from generated junit file
    
    Under windows we get some invalid chars that are causing gitlab not to
    be able to parse the xml files
    
    See: https://github.com/mesonbuild/meson/issues/9894

 .gitlab-ci/test-msvc.bat | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/.gitlab-ci/test-msvc.bat b/.gitlab-ci/test-msvc.bat
index c5d64fa362..d370a59af5 100644
--- a/.gitlab-ci/test-msvc.bat
+++ b/.gitlab-ci/test-msvc.bat
@@ -20,6 +20,10 @@ ninja -C _build || goto :error
 meson test -C _build --timeout-multiplier %MESON_TEST_TIMEOUT_MULTIPLIER% || goto :error
 meson test -C _build --timeout-multiplier %MESON_TEST_TIMEOUT_MULTIPLIER% --setup=unstable_tests 
--suite=failing --suite=flaky
 
+:: Workaround meson issue https://github.com/mesonbuild/meson/issues/9894
+python3 -c "n = '_build/meson-logs/testlog.junit.xml'; c = open(n).read().replace('\x1b',''); open(n, 
'w').write(c)"
+python3 -c "n = '_build/meson-logs/testlog-unstable_tests.junit.xml'; c = open(n).read().replace('\x1b',''); 
open(n, 'w').write(c)"
+
 :: FIXME: can we get code coverage support?
 
 goto :EOF


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]