Skip to content

Commit cca73fc

Browse files
committed
fixup: remove env var; run in single test
1 parent a5c4985 commit cca73fc

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

crates/cargo-codspeed/tests/cargo_config.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@ use std::process::Command;
22

33
mod helpers;
44
use helpers::*;
5-
65
#[test]
76
fn test_cargo_config_rustflags() {
7+
test_cargo_config_without_rustflags_env();
8+
test_cargo_config_with_rustflags_env();
9+
}
10+
11+
fn test_cargo_config_without_rustflags_env() {
812
let tmp_dir = setup("tests/cargo_config.in", Project::Simple);
913

1014
// Test that cargo bench works with the custom flag
@@ -34,7 +38,6 @@ fn test_cargo_config_rustflags() {
3438
teardown(tmp_dir);
3539
}
3640

37-
#[test]
3841
fn test_cargo_config_with_rustflags_env() {
3942
let tmp_dir = setup("tests/cargo_config.in", Project::Simple);
4043

@@ -66,4 +69,6 @@ fn test_cargo_config_with_rustflags_env() {
6669
);
6770

6871
teardown(tmp_dir);
72+
73+
std::env::remove_var("RUSTFLAGS");
6974
}

0 commit comments

Comments
 (0)