From 82f076ea3031e1e2fe8fd33dc70be6b5c9566549 Mon Sep 17 00:00:00 2001 From: Jan Niehusmann Date: Thu, 15 Aug 2024 21:13:21 +0000 Subject: [PATCH] Increase rtt buffer size for on-target tests Some of the panic messages are longer than the default buffer, causing a lockup. --- on-target-tests/run_tests.bat | 1 + on-target-tests/run_tests.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/on-target-tests/run_tests.bat b/on-target-tests/run_tests.bat index f8fcfa61d..26bb5d5a3 100755 --- a/on-target-tests/run_tests.bat +++ b/on-target-tests/run_tests.bat @@ -2,5 +2,6 @@ @rem We need to specify environment variables here to control build since we aren't able to override them in Cargo.toml @SET "CARGO_TARGET_THUMBV6M_NONE_EABI_RUNNER=probe-rs run" +@SET "DEFMT_RTT_BUFFER_SIZE=4096" cargo test --no-fail-fast -- --chip rp2040 diff --git a/on-target-tests/run_tests.sh b/on-target-tests/run_tests.sh index 326e7992b..416215af6 100755 --- a/on-target-tests/run_tests.sh +++ b/on-target-tests/run_tests.sh @@ -3,4 +3,4 @@ # Keep running tests even if one of them fails # We need to specify probe-rs as our runner via environment variables here # to control build since we aren't able to override them in config.toml -CARGO_TARGET_THUMBV6M_NONE_EABI_RUNNER="probe-rs run" cargo test --no-fail-fast -- --chip rp2040 +DEFMT_RTT_BUFFER_SIZE=4096 CARGO_TARGET_THUMBV6M_NONE_EABI_RUNNER="probe-rs run" cargo test --no-fail-fast -- --chip rp2040