summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2023-08-12 11:35:53 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2023-08-12 11:35:53 +0100
commitd54f93508bf29edb9d6b5f655ab9b518f18ecaec (patch)
tree8f110dd2f19aad292a641a6501f9352ef00387d7 /share
parent0c4610d7d76a8d91fb9d0efb3c80ab2e4ff6704a (diff)
downloadsubplot-d54f93508bf29edb9d6b5f655ab9b518f18ecaec.tar.gz
share: Adapt rust template to pass locations in
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'share')
-rw-r--r--share/rust/template/macros.rs.tera2
-rw-r--r--share/rust/template/template.rs.tera2
2 files changed, 2 insertions, 2 deletions
diff --git a/share/rust/template/macros.rs.tera b/share/rust/template/macros.rs.tera
index 104eb23..cc1d9c4 100644
--- a/share/rust/template/macros.rs.tera
+++ b/share/rust/template/macros.rs.tera
@@ -27,5 +27,5 @@
)
{% endif -%}
{% endfor -%}
- .build(format!("{} {}", "{{step.kind | lower}}", base64_decode("{{step.text | base64}}")))
+ .build(format!("{} {}", "{{step.kind | lower}}", base64_decode("{{step.text | base64}}")), {{ step.origin | location }})
{%- endmacro builder -%}
diff --git a/share/rust/template/template.rs.tera b/share/rust/template/template.rs.tera
index 65fb755..447129c 100644
--- a/share/rust/template/template.rs.tera
+++ b/share/rust/template/template.rs.tera
@@ -30,7 +30,7 @@ lazy_static! {
#[test]
#[allow(non_snake_case)]
fn {{ scenario.title | nameslug }}() {
- let mut scenario = Scenario::new(&base64_decode("{{scenario.title | base64}}"));
+ let mut scenario = Scenario::new(&base64_decode("{{scenario.title | base64}}"), {{ scenario.origin | location }});
{% for step in scenario.steps %}
let step = {{ macros::builder(stepfn=step.function, step=step) }};
{%- if step.cleanup %}