Skip to content

Commit

Permalink
test(package): relative path to cwd for dirtiness report
Browse files Browse the repository at this point in the history
  • Loading branch information
weihanglo committed Dec 20, 2024
1 parent efaaa0c commit 9e2b373
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/testsuite/package.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1099,6 +1099,20 @@ Cargo.toml
to proceed despite this and include the uncommitted changes, pass the `--allow-dirty` flag
"#]])
.run();

// cd to `src` and cargo report relative paths.
p.cargo("package")
.cwd(p.root().join("src"))
.with_status(101)
.with_stderr_data(str![[r#"
[ERROR] 1 files in the working directory contain changes that were not yet committed into git:
Cargo.toml
to proceed despite this and include the uncommitted changes, pass the `--allow-dirty` flag
"#]])
.run();
}
Expand Down

0 comments on commit 9e2b373

Please sign in to comment.