diff options
| author | 2017-12-08 12:45:35 -0800 | |
|---|---|---|
| committer | 2017-12-11 23:55:03 +0000 | |
| commit | 31603067b0cc7c67f56c3d7415c886a17b4e6d24 (patch) | |
| tree | 4f1a92321680c6745116d42740b5ebbdf5582475 /java/java_test.go | |
| parent | c331599a8878bfe40f6030ce5cfc10603f739a8d (diff) | |
Escape genrule commands
Bug: 70387174
Test: Put this text into an Android.bp:
genrule {
name: "test_genrule",
tool_files: ["foo"],
out: ["foo.c"],
cmd: "for i in a b c; do echo $$i; done > $(out)",
}
cc_library {
name: "libtest_genrule",
srcs: [":test_genrule"],
}
and then run `m -j libtest_genrule`. Although the library
shouldn't compile, check that it produces a foo.c that has
"a\nb\n\c\n" and not "\n\n\n".
Change-Id: I139106479439c9b3a95f1a2ecc23e73570d7bd59
Diffstat (limited to 'java/java_test.go')
0 files changed, 0 insertions, 0 deletions