]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: when the build fails, show its log output, and propagate error
authorLennart Poettering <lennart@poettering.net>
Tue, 5 Sep 2017 10:19:28 +0000 (12:19 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 22 Sep 2017 13:24:55 +0000 (15:24 +0200)
mkosi.build

index 12e88b909ca3d46b5a0adc9e6c43f7a996b5667d..92eb55b130c2c4b71c5bd18500469c2809ddae21 100755 (executable)
@@ -28,7 +28,7 @@ export LC_CTYPE=C.UTF-8
 
 [ -f "$BUILDDIR"/build.ninja ] || meson "$BUILDDIR"
 ninja -C "$BUILDDIR" all
-[ "$WITH_TESTS" = 0 ] || ninja -C "$BUILDDIR" test
+[ "$WITH_TESTS" = 0 ] || ninja -C "$BUILDDIR" test || ( RET="$?" ; cat "$BUILDDIR"/meson-logs/testlog.txt ; exit "$RET" )
 ninja -C "$BUILDDIR" install
 
 mkdir -p "$DESTDIR"/etc