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




commit cf0962407d65b35b58f04e2343ed4307c7f6f993
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..840ccbf0d4 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
+python -c "n = '_build/meson-logs/testlog.junit.xml'; open(n, 'rb').read().replace(b'\x1b',b'\x20'); open(n, 
'wb').write(c)" || goto :error
+python -c "n = '_build/meson-logs/testlog-unstable_tests.junit.xml'; open(n, 
'rb').read().replace(b'\x1b',b'\x20'); open(n, 'wb').write(c)" || goto :error
+
 :: FIXME: can we get code coverage support?
 
 goto :EOF


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