Ensure build/tests
exists before trying to create a file there
This commit is contained in:
parent
baa6e1c134
commit
ee892cbc75
2 changed files with 2 additions and 0 deletions
|
@ -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=$?
|
||||
|
|
|
@ -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=$?
|
||||
|
|
Loading…
Add table
Reference in a new issue