Skip to content

Commit 62c4a0d

Browse files
author
xlings-ci
committed
test: spell the absolute glob of E2E 882 in the host's form
Git Bash's pwd prints /d/a/..., which is not an absolute Windows path; the fixture now writes the host_path spelling, D:/a/..., into build.mcpp.
1 parent 629e149 commit 62c4a0d

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎tests/e2e/882_parent_directory_glob_inputs.sh‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,10 @@ done
8585

8686
# An absolute pattern is matched against absolute paths (#766): the root
8787
# package may watch a directory outside its tree by its absolute name.
88-
INPUTS_ABS=$(cd ../inputs && pwd -P)
89-
sed -i.bak "s|\"../inputs/\\*\\*/\\*.in\"|\"$INPUTS_ABS/**/*.in\"|" build.mcpp
90-
grep -q "$INPUTS_ABS/\*\*/\*.in" build.mcpp || fail "the fixture did not take the absolute pattern"
88+
# The host's own spelling: on Windows `C:/...`, not Git Bash's `/c/...`.
89+
INPUTS_HOST=$(host_path "$(cd ../inputs && pwd -P)")
90+
sed -i.bak "s|\"../inputs/\\*\\*/\\*.in\"|\"$INPUTS_HOST/**/*.in\"|" build.mcpp
91+
grep -q "$INPUTS_HOST/\*\*/\*.in" build.mcpp || fail "the fixture did not take the absolute pattern"
9192
build_count absolute 1
9293
printf 'c\n' > ../inputs/c.in
9394
build_count absolute-added 2

0 commit comments

Comments
 (0)