Skip to content

Commit 1edba25

Browse files
authored
fix: add mount-with write for java25 tests (#8579)
* fix: add mount with WRITE for java25 tests * don't mw write for maven * linting * fix maven check * maven fix
1 parent 8aed94a commit 1edba25

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

tests/integration/buildcmd/build_integ_base.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
get_sam_command,
3333
run_command_with_input,
3434
)
35+
from samcli.commands.build.utils import MountMode
3536

3637

3738
LOG = logging.getLogger(__name__)
@@ -661,7 +662,14 @@ def _test_with_building_java(
661662
self.skipTest(self.SKIP_ARM64_EARLIER_JAVA_TESTS)
662663

663664
overrides = self.get_override(runtime, code_path, architecture, "aws.example.Hello::myHandler")
664-
cmdlist = self.get_command_list(use_container=use_container, parameter_overrides=overrides)
665+
mount_with = (
666+
MountMode.WRITE
667+
if use_container and str(runtime).lower() == "java25" and self.USING_MAVEN_PATH not in code_path
668+
else None
669+
)
670+
cmdlist = self.get_command_list(
671+
use_container=use_container, parameter_overrides=overrides, mount_with=mount_with
672+
)
665673
cmdlist += ["--skip-pull-image"]
666674
if code_path == self.USING_GRADLEW_PATH and use_container and IS_WINDOWS:
667675
osutils.convert_to_unix_line_ending(os.path.join(self.test_data_path, self.USING_GRADLEW_PATH, "gradlew"))

0 commit comments

Comments
 (0)