Skip to content

Commit

Permalink
Auto merge of #9813 - ehuss:fix-license-file, r=alexcrichton
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bors committed Aug 20, 2021
2 parents 580461b + cfcb078 commit 2733a6a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/testsuite/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1303,7 +1303,7 @@ fn crate_env_vars() {
repository = "https://example.com/repo.git"
authors = ["wycats@example.com"]
license = "MIT OR Apache-2.0"
license_file = "license.txt"
license-file = "license.txt"
[[bin]]
name = "foo-bar"
Expand Down Expand Up @@ -1344,6 +1344,7 @@ fn crate_env_vars() {
assert_eq!("https://example.com", HOMEPAGE);
assert_eq!("https://example.com/repo.git", REPOSITORY);
assert_eq!("MIT OR Apache-2.0", LICENSE);
assert_eq!("license.txt", LICENSE_FILE);
assert_eq!("This is foo", DESCRIPTION);
let s = format!("{}.{}.{}-{}", VERSION_MAJOR,
VERSION_MINOR, VERSION_PATCH, VERSION_PRE);
Expand Down

0 comments on commit 2733a6a

Please sign in to comment.