]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: don't check for -Dinstall-tests=true with NO_BUILD=1
authorFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 14 Dec 2023 14:06:46 +0000 (15:06 +0100)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 14 Dec 2023 22:11:12 +0000 (23:11 +0100)
test/test-functions

index 6a6f624d4cdfc06851caf8e61721419b2d2baea7..f887346b34b2f2e4f0112eca326bf8b1eef73bc6 100644 (file)
@@ -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