Skip to content

Commit a2a10f1

Browse files
authored
Merge pull request #334 from RalfJung/ci-lockfiles
CI: ensure integration test lockfiles are up-to-date
2 parents e8592b9 + e9587d5 commit a2a10f1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/integration.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ fn main() -> Result<()> {
55
let path = Path::new(file!()).parent().unwrap();
66
let root_dir = path.join("integrations");
77
let mut config = Config {
8-
bless_command: Some("cargo test -- -- --bless".to_string()),
8+
bless_command: Some("cargo test".to_string()), // we bless by default
99
..Config::cargo(root_dir.clone())
1010
};
1111

@@ -32,6 +32,10 @@ fn main() -> Result<()> {
3232
.program
3333
.envs
3434
.push(("BLESS".into(), (!args.check).then(|| String::new().into())));
35+
if args.check {
36+
// Also check the lockfile.
37+
config.program.args.push("--locked".into());
38+
}
3539

3640
config
3741
.program

0 commit comments

Comments
 (0)