]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: print path to build directory on misconfiguration 15109/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 31 Mar 2020 13:13:13 +0000 (15:13 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 31 Mar 2020 13:13:13 +0000 (15:13 +0200)
This way it's easier to see when a wrong $BUILD_DIR was passed.

test/test-functions

index ead815f2fab148e6d932eb4a9d3fd5c458ae9c65..fbdc92c96eeeb33c857b6c7b8fdf13871566f06f 100644 (file)
@@ -1964,7 +1964,7 @@ test_setup() {
     if [ ${TEST_REQUIRE_INSTALL_TESTS} -ne 0 ] && \
             type -P meson >/dev/null && \
             [[ "$(meson configure $BUILD_DIR | grep install-tests | awk '{ print $2 }')" != "true" ]]; then
-        dfatal "Needs to be built with -Dinstall-tests=true"
+        dfatal "$BUILD_DIR needs to be built with -Dinstall-tests=true"
         exit 1
     fi