diff --git a/Scripts/build_unsigned.sh b/Scripts/build_unsigned.sh index c8fd2bb45..a3f47fcce 100755 --- a/Scripts/build_unsigned.sh +++ b/Scripts/build_unsigned.sh @@ -19,8 +19,9 @@ export LC_CTYPE=en_US.UTF-8 # get current directory SCRIPTS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" -# allocate a temp dir for build artifacts -BUILD_DIR=$(mktemp -d ${SCRIPTS_DIR}/build_unsigned.tmp) +# allocate a dir for build artifacts +BUILD_DIR="${SCRIPTS_DIR}/build_unsigned.tmp" +mkdir "${BUILD_DIR}" # all builds paths will be relative to ROOT_DIR ROOT_DIR=$(cd "$SCRIPTS_DIR/.." && pwd) diff --git a/Scripts/run_all_unit_tests.sh b/Scripts/run_all_unit_tests.sh index e0df33285..3b2356a1e 100755 --- a/Scripts/run_all_unit_tests.sh +++ b/Scripts/run_all_unit_tests.sh @@ -15,8 +15,9 @@ export LC_CTYPE=en_US.UTF-8 # get current directory SCRIPTS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" -# allocate a temp dir for build artifacts -BUILD_DIR=$(mktemp -d ${SCRIPTS_DIR}/build.XXXXXXXXX) +# allocate a dir for build artifacts +BUILD_DIR="${SCRIPTS_DIR}/run_all_unit_tests.tmp" +mkdir "${BUILD_DIR}" ROOT_DIR=$(cd "$SCRIPTS_DIR/.." && pwd)