From: Mordechay Goodstein Date: Tue, 22 Jul 2025 07:27:45 +0000 (+0200) Subject: tests: Enable setting the temp dir from outside the build directory X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=413a01d641db3b77efc945cc83f9a1d01ba81674;p=thirdparty%2Fhostap.git tests: Enable setting the temp dir from outside the build directory This may be useful in some automation environments that require control over the build folder. Signed-off-by: Mordechay Goodstein Reviewed-by: Andrei Otcheretianski Signed-off-by: Benjamin Berg --- diff --git a/tests/build/run-build-tests.sh b/tests/build/run-build-tests.sh index 347ca39a0..0745f8256 100755 --- a/tests/build/run-build-tests.sh +++ b/tests/build/run-build-tests.sh @@ -1,6 +1,6 @@ #!/bin/bash -DIR=`mktemp -d` +DIR=${DIR:-`mktemp -d`} pushd ../.. > /dev/null git archive --format=tar --prefix=hostap-build/ HEAD > $DIR/hostap-build.tar popd > /dev/null