feat: add user variables to input
All checks were successful
continuous-integration/drone/push Build is passing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2024-05-25 14:47:18 +02:00
parent 3e06479cda
commit 6e8e63e5ee
2 changed files with 35 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
use std::{cmp::Ordering, path::Path};
use std::{cmp::Ordering, collections::HashMap, path::Path};
use cuddle_clusters::{process::ProcessOpts, ConcreteComponent, IntoComponent};
use walkdir::DirEntry;
@@ -27,6 +27,7 @@ pub(crate) async fn run_test_with_components(
ProcessOpts {
path: test_folder.clone(),
output: actual.clone(),
variables: HashMap::default(),
},
)
.await?;
@@ -37,6 +38,7 @@ pub(crate) async fn run_test_with_components(
ProcessOpts {
path: test_folder,
output: expected.clone(),
variables: HashMap::default(),
},
)
.await?;