From: Lennart Poettering Date: Mon, 17 Jul 2017 18:54:16 +0000 (+0200) Subject: mkosi: support mkosi's --without-tests switch X-Git-Tag: v235~310^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a818a2ae601dc1b15ae3cb50f4291f01187f2885;p=thirdparty%2Fsystemd.git mkosi: support mkosi's --without-tests switch This adds support for the mkosi switch --without-tests that is introduced by: https://github.com/systemd/mkosi/pull/122 With this in place doing "mkosi -ifT shell" is the fastest way from a git clone to a shell within a freshly compiled systemd system. --- diff --git a/mkosi.build b/mkosi.build index a36460c6f5a..c722e231924 100755 --- a/mkosi.build +++ b/mkosi.build @@ -27,7 +27,7 @@ export LC_CTYPE=C.UTF-8 test -f "$BUILDDIR"/build.ninja || meson "$BUILDDIR" ninja -C "$BUILDDIR" all -ninja -C "$BUILDDIR" test +[ "$WITH_TESTS" = 0 ] || ninja -C "$BUILDDIR" test ninja -C "$BUILDDIR" install mkdir -p "$DESTDIR"/etc