From cfcb0786dde23cd49cfcfed7192bd9a273c59780 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Fri, 20 Aug 2021 12:16:25 -0700 Subject: [PATCH] Fix test incorrectly validating CARGO_PKG_LICENSE_FILE. --- tests/testsuite/build.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/testsuite/build.rs b/tests/testsuite/build.rs index ae31707a7d5..6d041641d2a 100644 --- a/tests/testsuite/build.rs +++ b/tests/testsuite/build.rs @@ -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" @@ -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);