From 64cf3ff4b38de91f7be9bc297e44dc907811e145 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Mon, 18 Sep 2023 13:42:11 +0200 Subject: [PATCH] CI: Print error logs on test failure It'll help to check what precisely failed with the test, instead of getting only passed/failed states. --- .gitlab-ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ee7f341..27eafb1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -15,7 +15,7 @@ fedora:Werror: - meson _build -Dwerror=true -Dc_args=-Wno-error=deprecated-declarations -Dgtk_doc=false - meson compile -C _build - eval `dbus-launch --sh-syntax` - - meson test -C _build + - meson test -C _build --print-errorlogs artifacts: when: on_failure paths: @@ -29,7 +29,7 @@ fedora:asan: - meson _build -Db_sanitize=address -Dgtk_doc=false -Dintrospection=false - meson compile -C _build - eval `dbus-launch --sh-syntax` - - meson test -C _build + - meson test -C _build --print-errorlogs allow_failure: true artifacts: when: on_failure @@ -44,7 +44,7 @@ fedora:ubsan: - meson _build -Db_sanitize=undefined -Dgtk_doc=false - meson compile -C _build - eval `dbus-launch --sh-syntax` - - meson test -C _build + - meson test -C _build --print-errorlogs artifacts: when: on_failure paths: @@ -78,7 +78,7 @@ fedora:coverage: - swtpm socket --tpm2 --tpmstate dir=$XDG_CONFIG_HOME/mytpm1 --flags startup-clear --ctrl type=tcp,port=2322 --server type=tcp,port=2321 --daemon - 'tpm2-abrmd --logger=stdout --tcti=swtpm: --session --allow-root --flush-all &' - 'export TCTI=tabrmd:bus_type=session' - - meson test -C _build + - meson test -C _build --print-errorlogs - ninja coverage-html -C _build coverage: '/^\s+lines.+:\s+([\d.]+\%)\s+/' artifacts: