Skip to content

Commit d6d5cbc

Browse files
committed
Update failed test
1 parent 0bf73b7 commit d6d5cbc

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

test/cargo_build_script/tools_exec/tools_exec.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
pub fn test_tool_exec() {
33
let tool_path = env!("TOOL_PATH");
44
assert!(
5-
tool_path.contains("-exec-"),
6-
"tool_path did not contain '-exec-'",
5+
tool_path.contains("-exec-") || tool_path.contains("-exec/bin/"),
6+
"tool_path did not contain '-exec-' or '-exec/bin'\n`{}`",
7+
tool_path,
78
);
89
}

test/unit/build_script_deps/build_script_deps.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def _build_script_deps_test_impl(ctx):
4242
if output.path.endswith(".rlib")
4343
][0]
4444

45-
asserts.true(env, "-exec-" in rlib_output.path)
45+
asserts.true(env, "-exec-" not in rlib_output.path or "-exec/bin/" not in rlib_output.path)
4646
return analysistest.end(env)
4747

4848
build_script_deps_test = analysistest.make(

0 commit comments

Comments
 (0)