From cdb6522dd57843ed2190ae81cb4fee8eafa47ad6 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 9 Jul 2021 14:42:33 +0100 Subject: [PATCH] jstest: lower: script: fix multiple pieces Signed-off-by: Ian Jackson --- jstest/jst-lower.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/jstest/jst-lower.rs b/jstest/jst-lower.rs index 98e7f347..0fc767f7 100644 --- a/jstest/jst-lower.rs +++ b/jstest/jst-lower.rs @@ -194,11 +194,13 @@ fake_dom[{{ loop.index0 }}].nextElementSibling = fake_dom[{{ loop.index }}]; {%- endfor %} fake_dom[{{ pieces | length }}].nextElementSibling = fake_dom[{{ pieces | length + 1 }}]; -{% for t in targets -%} uorecord = { - targets: ['{{ t }}'], -}; + targets: [ +{%- for t in targets %} + '{{ t }}', {%- endfor %} + ], +}; lower_targets(uorecord); -- 2.30.2