Skip to content

Commit

Permalink
Increase rtt buffer size for on-target tests
Browse files Browse the repository at this point in the history
Some of the panic messages are longer than the default buffer, causing a lockup.
  • Loading branch information
jannic committed Aug 25, 2024
1 parent 16fc26c commit 82f076e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions on-target-tests/run_tests.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion on-target-tests/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 82f076e

Please sign in to comment.