]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Check return status of rec unit test run when using meson 16231/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Thu, 9 Oct 2025 12:12:46 +0000 (14:12 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Thu, 9 Oct 2025 12:29:24 +0000 (14:29 +0200)
Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
tasks.py

index d0dbb6c3430e4a21822efd429dac32dbf1146016..cadafb433ec8f40f782826eb14bdb6afa7a13229 100644 (file)
--- a/tasks.py
+++ b/tasks.py
@@ -932,10 +932,11 @@ def ci_rec_run_unit_tests(c, meson=False):
         logfile = 'meson-logs/testlog.txt'
         res = c.run(f'meson test --verbose -t {suite_timeout_sec}', warn=True)
     else:
+        logfile = 'test-suite.log'
         res = c.run('make check', warn=True)
-        if res.exited != 0:
-          c.run('cat test-suite.log')
-          raise UnexpectedExit(res)
+    if res.exited != 0:
+        c.run(f'cat {logfile}', warn=True)
+        raise UnexpectedExit(res)
 
 @task
 def ci_dnsdist_run_unit_tests(c, builder):