summaryrefslogtreecommitdiff
path: root/mkosi.build
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2017-09-05 12:19:28 +0200
committerLennart Poettering <lennart@poettering.net>2017-09-22 15:24:55 +0200
commit2ba6e7381b0d7708df28bf1423a642bb12222614 (patch)
treee0c907f431b20bc9a32fed23ef3ee351d5bf980b /mkosi.build
parent3dc5ca9787fcc08317d5e6a689cb1e7eb9ba5384 (diff)
downloadsystemd-2ba6e7381b0d7708df28bf1423a642bb12222614.tar.gz
mkosi: when the build fails, show its log output, and propagate error
Diffstat (limited to 'mkosi.build')
-rwxr-xr-xmkosi.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/mkosi.build b/mkosi.build
index 12e88b909c..92eb55b130 100755
--- a/mkosi.build
+++ b/mkosi.build
@@ -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