From 4997f7063bc9fc34a01059f3fe3818b6aec6d9aa Mon Sep 17 00:00:00 2001 From: David Duarte Date: Tue, 13 Jun 2023 17:22:25 +0000 Subject: [PATCH] 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 --- tests/genrule_sandbox_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/genrule_sandbox_test.py b/tests/genrule_sandbox_test.py index 697fc26e8..2f04b1ee7 100755 --- a/tests/genrule_sandbox_test.py +++ b/tests/genrule_sandbox_test.py @@ -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