test: print path to build directory on misconfiguration

This way it's easier to see when a wrong $BUILD_DIR was passed.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2020-03-31 15:13:13 +02:00
parent ead7af3093
commit 20f938ff7f
1 changed files with 1 additions and 1 deletions

View 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