From 46a85bb8f2d916d95459298a3a9f0b443d316ec0 Mon Sep 17 00:00:00 2001 From: ravinperera00 Date: Mon, 28 Oct 2024 15:20:45 +0530 Subject: [PATCH] Revert changes in BuildNativeImageCommandTest.java --- .../io/ballerina/cli/cmd/BuildNativeImageCommandTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/ballerina-cli/src/test/java/io/ballerina/cli/cmd/BuildNativeImageCommandTest.java b/cli/ballerina-cli/src/test/java/io/ballerina/cli/cmd/BuildNativeImageCommandTest.java index 464446a4b04c..2e95c1aab006 100644 --- a/cli/ballerina-cli/src/test/java/io/ballerina/cli/cmd/BuildNativeImageCommandTest.java +++ b/cli/ballerina-cli/src/test/java/io/ballerina/cli/cmd/BuildNativeImageCommandTest.java @@ -86,7 +86,7 @@ public void testBuildProjectWithAdditionalArgs() throws IOException { Path projectPath = this.testResources.resolve("nativeimageProject"); System.setProperty(ProjectConstants.USER_DIR, projectPath.toString()); BuildCommand buildCommand = new BuildCommand(projectPath, printStream, printStream, false, - false, true, "-o " + projectPath + "/hoo"); + false, true, "-H:Name=hoo"); // non existing bal file new CommandLine(buildCommand).parseArgs(); buildCommand.execute(); @@ -124,7 +124,7 @@ public void testBuildBalFileWithAdditionalArgs() throws IOException { Path projectPath = this.testResources.resolve("nativeimageSingleFile").resolve("main.bal"); System.setProperty(ProjectConstants.USER_DIR, this.testResources.resolve("valid-test-bal-file").toString()); BuildCommand buildCommand = new BuildCommand(projectPath, printStream, printStream, false, - false, true, "-o " + projectPath + "/hoo"); + false, true, "-H:Name=hoo"); new CommandLine(buildCommand).parseArgs(projectPath.toString()); buildCommand.execute(); String buildLog = readOutput(true);