aboutsummaryrefslogtreecommitdiff
path: root/toolchains
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-07 05:09:59 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-07 05:09:59 +0000
commit80a5d8bcf7b42a232821f4facf71d16815a8854b (patch)
tree3c15c050ced2749753c4d6f1cf9d3a9b9bd94085 /toolchains
parente3e4f5325f3a9b46381531439b27dcfb294477fe (diff)
parentf8aadd2ad5a51ac3187333bf589a754c5347d447 (diff)
downloadbazel-skylib-aml_uwb_341511050.tar.gz
Change-Id: Ifebf9a109e77ff49fde418e5a6df10aea9117a0e
Diffstat (limited to 'toolchains')
-rw-r--r--toolchains/unittest/BUILD8
1 files changed, 4 insertions, 4 deletions
diff --git a/toolchains/unittest/BUILD b/toolchains/unittest/BUILD
index 03ceff4..dd23962 100644
--- a/toolchains/unittest/BUILD
+++ b/toolchains/unittest/BUILD
@@ -9,6 +9,7 @@ toolchain_type(
unittest_toolchain(
name = "cmd",
+ escape_chars_with = {"%": "%"},
failure_templ = """@echo off
echo %s
exit /b 1
@@ -30,14 +31,13 @@ toolchain(
unittest_toolchain(
name = "bash",
+ escape_other_chars_with = "\\",
failure_templ = """#!/bin/sh
-cat <<'EOF'
-%s
-EOF
+echo %s
exit 1
""",
file_ext = ".sh",
- join_on = "\n",
+ join_on = "\necho ",
success_templ = "#!/bin/sh\nexit 0",
visibility = ["//visibility:public"],
)