Ignore com.micropythonos.musicplayer failure on macOS

It's due to this @micropython.viper, which doesn't apply to macOS anyway.
This commit is contained in:
Thomas Farstrike
2025-11-23 05:07:42 +01:00
parent 0ba1048abb
commit 965eec1b2d
+14 -1
View File
@@ -122,9 +122,18 @@ class TestLaunchAllApps(unittest.TestCase):
fail for fail in failed_apps
if 'errortest' in fail['info']['package_name'].lower()
]
# On macOS, musicplayer is known to fail due to @micropython.viper issue
is_macos = sys.platform == 'darwin'
musicplayer_failures = [
fail for fail in failed_apps
if fail['info']['package_name'] == 'com.micropythonos.musicplayer' and is_macos
]
other_failures = [
fail for fail in failed_apps
if 'errortest' not in fail['info']['package_name'].lower()
if 'errortest' not in fail['info']['package_name'].lower() and
not (fail['info']['package_name'] == 'com.micropythonos.musicplayer' and is_macos)
]
# Check if errortest app exists
@@ -137,6 +146,10 @@ class TestLaunchAllApps(unittest.TestCase):
"Failed to detect error in com.micropythonos.errortest app")
print("✓ Successfully detected the intentional error in errortest app")
# Report on musicplayer failures on macOS (known issue)
if musicplayer_failures:
print("⚠ Skipped musicplayer failure on macOS (known @micropython.viper issue)")
# Fail the test if any non-errortest apps have errors
if other_failures:
print(f"\n❌ FAIL: {len(other_failures)} non-errortest app(s) have errors:")