From ee892cbc753db03cec3760b3ea854bc3e147e9a8 Mon Sep 17 00:00:00 2001 From: Bryan Forbes Date: Tue, 23 Jan 2024 12:48:31 -0600 Subject: [PATCH] Ensure `build/tests` exists before trying to create a file there --- app/run-ble-test.sh | 1 + app/run-test.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/app/run-ble-test.sh b/app/run-ble-test.sh index 226bd385c67..424982585e1 100755 --- a/app/run-ble-test.sh +++ b/app/run-ble-test.sh @@ -48,6 +48,7 @@ testcases=$(find $path -name nrf52_bsim.keymap -exec dirname \{\} \;) num_cases=$(echo "$testcases" | wc -l) if [ $num_cases -gt 1 ] || [ "$testcases" != "${path%%/}" ]; then echo "$testcases" + mkdir -p ./build/tests echo "" > ./build/tests/pass-fail.log echo "$testcases" | BLE_TESTS_QUIET_OUTPUT=y BLE_TESTS_NO_CENTRAL_BUILD=y xargs -L 1 -P ${J:-4} ./run-ble-test.sh err=$? diff --git a/app/run-test.sh b/app/run-test.sh index b0b6f73b499..6d39a911283 100755 --- a/app/run-test.sh +++ b/app/run-test.sh @@ -16,6 +16,7 @@ fi testcases=$(find $path -name native_posix_64.keymap -exec dirname \{\} \;) num_cases=$(echo "$testcases" | wc -l) if [ $num_cases -gt 1 ] || [ "$testcases" != "$path" ]; then + mkdir -p ./build/tests echo "" > ./build/tests/pass-fail.log echo "$testcases" | xargs -L 1 -P ${J:-4} ./run-test.sh err=$?