Skip to content

Commit 9e2b373

Browse files
committed
test(package): relative path to cwd for dirtiness report
1 parent efaaa0c commit 9e2b373

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/testsuite/package.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,6 +1099,20 @@ Cargo.toml
10991099
11001100
to proceed despite this and include the uncommitted changes, pass the `--allow-dirty` flag
11011101
1102+
"#]])
1103+
.run();
1104+
1105+
// cd to `src` and cargo report relative paths.
1106+
p.cargo("package")
1107+
.cwd(p.root().join("src"))
1108+
.with_status(101)
1109+
.with_stderr_data(str![[r#"
1110+
[ERROR] 1 files in the working directory contain changes that were not yet committed into git:
1111+
1112+
Cargo.toml
1113+
1114+
to proceed despite this and include the uncommitted changes, pass the `--allow-dirty` flag
1115+
11021116
"#]])
11031117
.run();
11041118
}

0 commit comments

Comments
 (0)