diff --git a/test/test_env_launcher/BUILD.bazel b/test/test_env_launcher/BUILD.bazel index f7f20ffdef..f2fe852d8d 100644 --- a/test/test_env_launcher/BUILD.bazel +++ b/test/test_env_launcher/BUILD.bazel @@ -21,7 +21,7 @@ rust_test( edition = "2018", env = { "FERRIS_SAYS": "Hello fellow Rustaceans!", - "HELLO_WORLD_BIN_ROOTPATH": "$(rootpath :hello-world)", - "HELLO_WORLD_SRC_EXECPATH": "$(execpath :hello_world_main)", + "HELLO_WORLD_BIN": "$(rootpath :hello-world)", + "HELLO_WORLD_SRC": "$(rootpath :hello_world_main)", }, ) diff --git a/test/test_env_launcher/tests/run.rs b/test/test_env_launcher/tests/run.rs index 01903cd2aa..7089671322 100644 --- a/test/test_env_launcher/tests/run.rs +++ b/test/test_env_launcher/tests/run.rs @@ -13,8 +13,7 @@ fn run() { ); // Test the behavior of `rootpath` and that a binary can be found relative to current_dir - let hello_world_bin = - std::path::PathBuf::from(std::env::var_os("HELLO_WORLD_BIN_ROOTPATH").unwrap()); + let hello_world_bin = std::path::PathBuf::from(std::env::var_os("HELLO_WORLD_BIN").unwrap()); assert_eq!( hello_world_bin.as_path(), @@ -28,8 +27,7 @@ fn run() { assert!(hello_world_bin.exists()); // Ensure `execpath` expanded variables map to real files and have absolute paths - let hello_world_src = - std::path::PathBuf::from(std::env::var("HELLO_WORLD_SRC_EXECPATH").unwrap()); - assert!(hello_world_src.is_absolute()); + let hello_world_src = std::path::PathBuf::from(std::env::var("HELLO_WORLD_SRC").unwrap()); + assert!(!hello_world_bin.is_absolute()); assert!(hello_world_src.exists()); }