]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Enable setting the temp dir from outside the build directory
authorMordechay Goodstein <mordechay.goodstein@intel.com>
Tue, 22 Jul 2025 07:27:45 +0000 (09:27 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 2 Oct 2025 20:06:56 +0000 (23:06 +0300)
This may be useful in some automation environments that require
control over the build folder.

Signed-off-by: Mordechay Goodstein <mordechay.goodstein@intel.com>
Reviewed-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
tests/build/run-build-tests.sh

index 347ca39a0e9996c9911a4b869f9649daec0107c4..0745f82562b5e24aedd9cfaac4a0c46b7a614ff4 100755 (executable)
@@ -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