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




commit c30fb7bde8ba12bcec935069a1cec04fe0fe958c
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..fbdea3868d 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'; c = open(n, 
encoding='cp1252').read().replace('\x1b',''); open(n, 'w').write(c)"
+python -c "n = '_build/meson-logs/testlog-unstable_tests.junit.xml'; c = open(n, 
encoding='cp1252').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]