diff options
author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2022-10-20 06:27:13 +0200 |
---|---|---|
committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2022-10-31 14:08:31 +0100 |
commit | 94273b0ebf10accde2703cc72e505043d1749e26 (patch) | |
tree | 1e851c31ad3a9596f2ad35ed5763ec7f0d6de221 | |
parent | be665cdce0b521b532119a335714cbedf70a4474 (diff) | |
download | glib-94273b0ebf10accde2703cc72e505043d1749e26.tar.gz |
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
-rw-r--r-- | .gitlab-ci/test-msvc.bat | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.gitlab-ci/test-msvc.bat b/.gitlab-ci/test-msvc.bat index c5d64fa36..1ad2e4a57 100644 --- a/.gitlab-ci/test-msvc.bat +++ b/.gitlab-ci/test-msvc.bat @@ -20,8 +20,17 @@ 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, 'rb').read().replace(b'\x1b', b''); open(n, 'wb').write(c)" || goto :error +python -c "n = '_build/meson-logs/testlog-unstable_tests.junit.xml'; c = open(n, 'rb').read().replace(b'\x1b', b''); open(n, 'wb').write(c)" || goto :error + :: FIXME: can we get code coverage support? goto :EOF :error + +:: Workaround meson issue https://github.com/mesonbuild/meson/issues/9894 +python -c "n = '_build/meson-logs/testlog.junit.xml'; c = open(n, 'rb').read().replace(b'\x1b', b''); open(n, 'wb').write(c)" +python -c "n = '_build/meson-logs/testlog-unstable_tests.junit.xml'; c = open(n, 'rb').read().replace(b'\x1b', b''); open(n, 'wb').write(c)" + exit /b 1 |