Skip to content

Commit 8bc1dff

Browse files
kyubisationwagnermaciel
authored andcommitted
build: prevent * expansion for static css content in ng_web_test_suite (#23982)
Currently when using a `*` inside css code (e.g. `calc(... * ...)` in the typography) it will be expanded to files in the current directory (e.g. `calc ... bazel-out external ...`), which will break the tests. This PR fixes this by wrapping the variable usage with quotes. (cherry picked from commit 5fcc634)
1 parent db5d8ce commit 8bc1dff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/defaults.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ def ng_web_test_suite(deps = [], static_css = [], exclude_init_script = False, *
437437
cssElement.type = "text/css"; \
438438
cssElement.innerHTML = "'"$$css_content"'"; \
439439
document.head.appendChild(cssElement);'
440-
echo $$js_template > $@
440+
echo "$$js_template" > $@
441441
""" % css_label,
442442
)
443443

0 commit comments

Comments
 (0)