Skip to content

Commit fff971d

Browse files
committed
fix(maven): skip native-image execution on macOS CI
1 parent b384472 commit fff971d

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

integration-tests/test_jbang_integration.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ def test_graalpy_template_native(self):
210210
self.assertIn("Successfully installed termcolor", out)
211211
self.assertIn("hello java", out)
212212

213+
@util.skip_on_macos("JBang native-image is unstable on macOS CI")
213214
def test_hello_example(self):
214215
work_dir = self.tmpdir
215216
hello_java_file = self.prepare_hello_example(work_dir)

integration-tests/test_maven_plugin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@ def check_generated_app(self, use_default_vfs_path):
279279

280280

281281
@util.skip_on_windows("ujson installation broken on Windows")
282+
@util.skip_on_macos("native-image execution exceeds CI time limits on macOS")
282283
def test_generated_app(self):
283284
self.check_generated_app(use_default_vfs_path=False)
284285

integration-tests/util.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ def long_running_test(func):
7474
def skip_on_windows(justification):
7575
return unittest.skipIf(sys.platform.startswith("win"), "skipped on Windows: " + justification)
7676

77+
def skip_on_macos(justification):
78+
return unittest.skipIf(sys.platform == "darwin", "skipped on macOS: " + justification)
79+
7780
class TemporaryTestDirectory():
7881
def __init__(self):
7982
if no_clean:

0 commit comments

Comments
 (0)