Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion tests/integration/buildcmd/build_integ_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
get_sam_command,
run_command_with_input,
)
from samcli.commands.build.utils import MountMode


LOG = logging.getLogger(__name__)
Expand Down Expand Up @@ -661,7 +662,14 @@ def _test_with_building_java(
self.skipTest(self.SKIP_ARM64_EARLIER_JAVA_TESTS)

overrides = self.get_override(runtime, code_path, architecture, "aws.example.Hello::myHandler")
cmdlist = self.get_command_list(use_container=use_container, parameter_overrides=overrides)
mount_with = (
MountMode.WRITE
if use_container and str(runtime).lower() == "java25" and self.USING_MAVEN_PATH not in code_path
else None
)
cmdlist = self.get_command_list(
use_container=use_container, parameter_overrides=overrides, mount_with=mount_with
)
cmdlist += ["--skip-pull-image"]
if code_path == self.USING_GRADLEW_PATH and use_container and IS_WINDOWS:
osutils.convert_to_unix_line_ending(os.path.join(self.test_data_path, self.USING_GRADLEW_PATH, "gradlew"))
Expand Down
Loading