Skip to content

Commit 242207e

Browse files
committed
[integration-tests] ensure NEXTEST_PROFILE is always set
This is set with nextest 0.9.89 and above.
1 parent 635b5dd commit 242207e

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.config/nextest.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
nextest-version = "0.9.86"
1+
nextest-version = "0.9.89"
22
experimental = ["setup-scripts"]
33

44
[profile.default]

integration-tests/src/env.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,8 @@ pub fn set_env_vars() {
2222
std::env::set_var("__NEXTEST_DISPLAY_EMPTY_OUTPUTS", "1");
2323

2424
// Unset NEXTEST_PROFILE because we don't want to let it interfere with the
25-
// tests.
26-
//
27-
// TODO: once cargo-nextest 0.9.89 is out, also check that NEXTEST_PROFILE
28-
// is actually set before unsetting it.
25+
// tests. But ensure that it's set first.
26+
std::env::var("NEXTEST_PROFILE").expect("NEXTEST_PROFILE should be set");
2927
std::env::remove_var("NEXTEST_PROFILE");
3028

3129
// Remove OUT_DIR from the environment, as it interferes with tests (some of them expect that

0 commit comments

Comments
 (0)