mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 06:56:14 +01:00
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
This commit is contained in:
parent
be665cdce0
commit
94273b0ebf
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user