genrule_sandbox_test: Remove space in }generate filter

Running `build/soong/tests/genrule_sandbox_test.py pandora_experimental-python-gen-src`
Find Actions with `${m.pandora_experimental-python-gen-src_.moduleDesc}generate${m.pandora_experimental-python-gen-src_.moduleDescSuffix}`
as description that doesn't contains spaces after `}generate`

Test: build/soong/tests/genrule_sandbox_test.py pandora_experimental-python-gen-src
Change-Id: I0f61793be9c602b91984f81f64ba5b4007a3b935
This commit is contained in:
David Duarte 2023-06-13 17:22:25 +00:00
parent 01f8784246
commit 4997f7063b

View file

@ -69,7 +69,7 @@ def _find_outputs_for_modules(modules, out_dir, target_product):
name = mod["Name"]
if name in modules:
for act in mod["Module"]["Actions"]:
if "}generate " in act["Desc"]:
if "}generate" in act["Desc"]:
module_to_outs[name].update(act["Outputs"])
return module_to_outs