Skip to content

Commit 2733a6a

Browse files
committed
Auto merge of #9813 - ehuss:fix-license-file, r=alexcrichton
Fix test incorrectly validating CARGO_PKG_LICENSE_FILE. This test had two flaws. One is that it used the wrong key name for `license-file`, and the second was that it wasn't checking the value was set.
2 parents 580461b + cfcb078 commit 2733a6a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/testsuite/build.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1303,7 +1303,7 @@ fn crate_env_vars() {
13031303
repository = "https://example.com/repo.git"
13041304
authors = ["[email protected]"]
13051305
license = "MIT OR Apache-2.0"
1306-
license_file = "license.txt"
1306+
license-file = "license.txt"
13071307
13081308
[[bin]]
13091309
name = "foo-bar"
@@ -1344,6 +1344,7 @@ fn crate_env_vars() {
13441344
assert_eq!("https://example.com", HOMEPAGE);
13451345
assert_eq!("https://example.com/repo.git", REPOSITORY);
13461346
assert_eq!("MIT OR Apache-2.0", LICENSE);
1347+
assert_eq!("license.txt", LICENSE_FILE);
13471348
assert_eq!("This is foo", DESCRIPTION);
13481349
let s = format!("{}.{}.{}-{}", VERSION_MAJOR,
13491350
VERSION_MINOR, VERSION_PATCH, VERSION_PRE);

0 commit comments

Comments
 (0)