Skip to content

Commit

Permalink
Ensure build/tests exists before trying to create a file there
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanforbes committed Jan 23, 2024
1 parent 01f2ac6 commit 4717c60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/run-ble-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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=$?
Expand Down
1 change: 1 addition & 0 deletions app/run-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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=$?
Expand Down

0 comments on commit 4717c60

Please sign in to comment.