Skip to content

Commit 99722fc

Browse files
Improve camera test handling on macOS
1 parent e9ad805 commit 99722fc

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

tests/test_graphical_launch_all_apps.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,16 +124,23 @@ def test_launch_all_apps(self):
124124
]
125125

126126
# On macOS, musicplayer is known to fail due to @micropython.viper issue
127+
# and camera app fails due to no camera hardware
127128
is_macos = sys.platform == 'darwin'
128129
musicplayer_failures = [
129130
fail for fail in failed_apps
130131
if fail['info']['package_name'] == 'com.micropythonos.musicplayer' and is_macos
131132
]
133+
134+
camera_failures = [
135+
fail for fail in failed_apps
136+
if fail['info']['package_name'] == 'com.micropythonos.camera' and is_macos
137+
]
132138

133139
other_failures = [
134140
fail for fail in failed_apps
135141
if 'errortest' not in fail['info']['package_name'].lower() and
136-
not (fail['info']['package_name'] == 'com.micropythonos.musicplayer' and is_macos)
142+
not (fail['info']['package_name'] == 'com.micropythonos.musicplayer' and is_macos) and
143+
not (fail['info']['package_name'] == 'com.micropythonos.camera' and is_macos)
137144
]
138145

139146
# Check if errortest app exists
@@ -149,6 +156,10 @@ def test_launch_all_apps(self):
149156
# Report on musicplayer failures on macOS (known issue)
150157
if musicplayer_failures:
151158
print("⚠ Skipped musicplayer failure on macOS (known @micropython.viper issue)")
159+
160+
# Report on camera failures on macOS (no camera hardware)
161+
if camera_failures:
162+
print("⚠ Skipped camera app failure on macOS (no camera hardware available)")
152163

153164
# Fail the test if any non-errortest apps have errors
154165
if other_failures:

0 commit comments

Comments
 (0)