Skip to content

Commit

Permalink
test: don't check for -Dinstall-tests=true with NO_BUILD=1
Browse files Browse the repository at this point in the history
  • Loading branch information
mrc0mmand committed Dec 14, 2023
1 parent fdd380d commit 58bcbad
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/test-functions
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 58bcbad

Please sign in to comment.