From: Frantisek Sumsal Date: Thu, 14 Dec 2023 14:06:46 +0000 (+0100) Subject: test: don't check for -Dinstall-tests=true with NO_BUILD=1 X-Git-Tag: v256-rc1~1483^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58bcbad86cc910e007fae3c66c3a5cfc17046801;p=thirdparty%2Fsystemd.git test: don't check for -Dinstall-tests=true with NO_BUILD=1 --- diff --git a/test/test-functions b/test/test-functions index 6a6f624d4cd..f887346b34b 100644 --- a/test/test-functions +++ b/test/test-functions @@ -3309,9 +3309,10 @@ test_create_image() { } test_setup() { - if get_bool "${TEST_REQUIRE_INSTALL_TESTS:?}" && \ - command -v meson >/dev/null && \ - [[ "$(meson configure "${BUILD_DIR:?}" | grep install-tests | awk '{ print $2 }')" != "true" ]]; then + if ! get_bool "$NO_BUILD" && \ + get_bool "${TEST_REQUIRE_INSTALL_TESTS:?}" && \ + command -v meson >/dev/null && \ + [[ "$(meson configure "${BUILD_DIR:?}" | grep install-tests | awk '{ print $2 }')" != "true" ]]; then dfatal "$BUILD_DIR needs to be built with -Dinstall-tests=true" exit 1 fi