ci: make output of cargo test smaller (#5219)

When the `tunnel_test` fails, it generates a lot of output because it
keeps printing the backtrace over and over. This makes it difficult to
access the input seed to the test. Copying this seed into a local
environment is the first step in debugging this, at which point the
backtrace can be enabled locally.

We also disable the `verbose: 1` config option. Users can always set
that using the `PROPTEST_VERBOSE` env variable.
This commit is contained in:
Thomas Eizinger
2024-06-06 07:42:29 +10:00
committed by GitHub
parent fb97e3c5a3
commit 29d0c748e3

View File

@@ -70,7 +70,6 @@ jobs:
# <https://github.com/rust-lang/cargo/issues/5999>
# Needed to create tunnel interfaces in unit tests
CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUNNER: "sudo --preserve-env"
RUST_BACKTRACE: full
PROPTEST_VERBOSE: 0 # Otherwise the output is very long.
CARGO_PROFILE_TEST_OPT_LEVEL: 1 # Otherwise proptests take forever.
name: "cargo test"