Skip test_graphical_camera_settings.py on macOS because no camera support

This commit is contained in:
Thomas Farstrike
2026-01-08 16:49:37 +01:00
parent 5c3e9008b8
commit e9ad805767
2 changed files with 8 additions and 3 deletions
+2 -1
View File
@@ -22,6 +22,7 @@ import lvgl as lv
import mpos.apps
import mpos.ui
import os
import sys
from mpos.ui.testing import (
wait_for_render,
capture_screenshot,
@@ -33,7 +34,7 @@ from mpos.ui.testing import (
get_widget_coords
)
@unittest.skipIf(sys.platform == 'darwin', "Camera tests not supported on macOS (no camera available)")
class TestGraphicalCameraSettings(unittest.TestCase):
"""Test suite for Camera app settings verification."""
+6 -2
View File
@@ -69,7 +69,7 @@ $(cat $file)
result = unittest.main() ; sys.exit(0 if result.wasSuccessful() else 1) "
result=$?
else
# Regular test: no boot files
echo "Regular test: no boot files"
"$binary" -X heapsize=8M -c "import sys ; sys.path.insert(0, 'lib') ; import mpos ; mpos.TaskManager.disable() ; $(cat main.py)
$(cat $file)
result = unittest.main() ; sys.exit(0 if result.wasSuccessful() else 1) "
@@ -143,7 +143,11 @@ if [ -z "$onetest" ]; then
else
echo "doing $onetest"
one_test $(readlink -f "$onetest")
[ $? -ne 0 ] && failed=1
result=$?
if [ $result -ne 0 ]; then
echo "Test returned result: $result"
failed=1
fi
fi