]> xenbits.xensource.com Git - libvirt.git/commitdiff
gitlab: only print failed tests in codestyle job
authorDaniel P. Berrangé <berrange@redhat.com>
Mon, 10 May 2021 16:57:50 +0000 (17:57 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Wed, 12 May 2021 13:17:48 +0000 (14:17 +0100)
"meson test" will only print a list of which tests fail by default,
so we were sending the full test log to stdout on failure. This makes
it really hard to see the errors though as the test log has all
succcesful tests too.

"ninja test" will print the same as "meson test", following by details
of each failure.

It does this using the "--print-errorlog" flag, so lets use  that in
the codestyle job.

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
.gitlab-ci.yml

index 89f618e678159a3e4f2375608360a1afc0447c52..cf0ce268b803e49d0d2acea6278bd18f01ce2fc5 100644 (file)
@@ -555,7 +555,7 @@ codestyle:
   script:
     - meson build --werror || (cat build/meson-logs/meson-log.txt && exit 1)
     - ninja -C build libvirt-pot-dep
-    - meson test -C build --suite syntax-check --no-rebuild || (cat build/meson-logs/testlog.txt && exit 1)
+    - meson test -C build --suite syntax-check --no-rebuild --print-errorlogs
 
 
 # This artifact published by this job is downloaded to push to Weblate