Skip to content

Commit e364307

Browse files
authored
test: Use a larger default term width (#16403)
@ehuss [made a comment](#16391 (comment)) saying that `cargo` should set `__CARGO_TEST_TTY_WIDTH_DO_NOT_USE_THIS to a very large value to avoid problems with long paths in tests. This PR does that by setting it to `200` (the previous default was `140`). Note: `200` is a start, and we can always go up if needed
2 parents 93ce46e + 3ed0831 commit e364307

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

crates/cargo-test-support/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1423,6 +1423,7 @@ pub trait TestEnvCommandExt: Sized {
14231423
.env("__CARGO_TEST_DISABLE_GLOBAL_KNOWN_HOST", "1")
14241424
// Set retry sleep to 1 millisecond.
14251425
.env("__CARGO_TEST_FIXED_RETRY_SLEEP_MS", "1")
1426+
.env("__CARGO_TEST_TTY_WIDTH_DO_NOT_USE_THIS", "200")
14261427
// Incremental generates a huge amount of data per test, which we
14271428
// don't particularly need. Tests that specifically need to check
14281429
// the incremental behavior should turn this back on.

tests/testsuite/lints/implicit_minimum_version_req.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -717,8 +717,8 @@ implicit_minimum_version_req = "warn"
717717
[WARNING] dependency version requirement without an explicit minimum version
718718
--> Cargo.toml:7:[..]
719719
|
720-
7 | [..]/bar', version = "0.1" }
721-
| [..]^^^^^ missing full version components
720+
7 | bar = { git = '[ROOTURL]/bar', version = "0.1" }
721+
| [..]^^^^^ missing full version components
722722
|
723723
[HELP] consider specifying full `major.minor.patch` version components
724724
|

0 commit comments

Comments
 (0)