Skip to content

Commit

Permalink
chore: Support test variables in Camel JBang command args
Browse files Browse the repository at this point in the history
  • Loading branch information
christophd committed Jan 30, 2025
1 parent 3985d3d commit c73c1a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public void doExecute(TestContext context) {

ProcessAndOutput result = JBangSupport.jbang()
.app(app)
.withSystemProperties(systemProperties)
.withSystemProperties(context.resolveDynamicValuesInMap(systemProperties))
.run(context.replaceDynamicContentInString(scriptOrFile), context.resolveDynamicValuesInList(args));

if (printOutput) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ public void doExecute(TestContext context) {
camelJBang().camelApp().withSystemProperties(context.resolveDynamicValuesInMap(systemProperties));
camelJBang().camelApp().workingDir(integrationToRun.toAbsolutePath().getParent());

ProcessAndOutput pao = camelJBang().run(name, integrationToRun.getFileName().toString(), resourceFiles, args.toArray(String[]::new));
ProcessAndOutput pao = camelJBang().run(name, integrationToRun.getFileName().toString(), resourceFiles,
context.resolveDynamicValuesInList(args).toArray(String[]::new));

verifyProcessIsAlive(pao, name);

Expand Down

0 comments on commit c73c1a3

Please sign in to comment.