Ensure nonzero_exit_code test isn't affected by developers RUST_BACKTRACE setting

This commit is contained in:
Wim Looman 2024-02-02 16:04:21 +01:00
parent a4fe27a4ba
commit 4ebbda15e1
No known key found for this signature in database
GPG Key ID: B2E97D4C8371025C

View File

@ -4869,6 +4869,7 @@ error: 2 targets failed:
.run();
p.cargo("test --no-fail-fast -- --nocapture")
.env_remove("RUST_BACKTRACE")
.with_stderr_does_not_contain("test exited abnormally; to see the full output pass --nocapture to the harness.")
.with_stderr_contains("[..]thread 't' panicked [..] tests/t1[..]")
.with_stderr_contains("note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace")