From ed58642a806142e42ca1fbddd0a13620e54c2286 Mon Sep 17 00:00:00 2001 From: Dylan MacKenzie Date: Mon, 6 Nov 2023 16:10:52 -0800 Subject: [PATCH] fix: save the build log when running tests ...and direct the user there if something goes wrong --- app/run-test.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/run-test.sh b/app/run-test.sh index 6935f2c8..e0452800 100755 --- a/app/run-test.sh +++ b/app/run-test.sh @@ -26,9 +26,11 @@ fi testcase="$path" echo "Running $testcase:" -west build -d build/$testcase -b native_posix_64 -- -DZMK_CONFIG="$(pwd)/$testcase" > /dev/null 2>&1 +mkdir -p build/$testcase +west build -d build/$testcase -b native_posix_64 -- -DZMK_CONFIG="$(pwd)/$testcase" >build/$testcase/build.log 2>&1 if [ $? -gt 0 ]; then echo "FAILED: $testcase did not build" | tee -a ./build/tests/pass-fail.log + echo $'\t' "see ./build/$testcase/build.log" exit 1 fi