Fix boot.py -> main.py

This commit is contained in:
Thomas Farstrike
2025-11-23 15:18:01 +01:00
parent 715c428141
commit b543213ada
2 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -61,9 +61,9 @@ pushd internal_filesystem/
elif [ ! -z "$script" ]; then # it's an app name
scriptdir="$script"
echo "Running app from $scriptdir"
"$binary" -X heapsize=$HEAPSIZE -v -i -c "$(cat boot.py) ; import mpos.apps; mpos.apps.start_app('$scriptdir')"
"$binary" -X heapsize=$HEAPSIZE -v -i -c "$(cat main.py) ; import mpos.apps; mpos.apps.start_app('$scriptdir')"
else
"$binary" -X heapsize=$HEAPSIZE -v -i -c "$(cat boot.py)"
"$binary" -X heapsize=$HEAPSIZE -v -i -c "$(cat main.py)"
fi
+4 -4
View File
@@ -60,13 +60,13 @@ one_test() {
# Desktop execution
if [ $is_graphical -eq 1 ]; then
# Graphical test: include boot_unix.py and main.py
"$binary" -X heapsize=8M -c "$(cat boot.py) ; import mpos.main ; import mpos.apps; sys.path.append(\"$tests_abs_path\")
"$binary" -X heapsize=8M -c "$(cat main.py) ; import mpos.main ; import mpos.apps; sys.path.append(\"$tests_abs_path\")
$(cat $file)
result = unittest.main() ; sys.exit(0 if result.wasSuccessful() else 1) "
result=$?
else
# Regular test: no boot files
"$binary" -X heapsize=8M -c "$(cat boot.py)
"$binary" -X heapsize=8M -c "$(cat main.py)
$(cat $file)
result = unittest.main() ; sys.exit(0 if result.wasSuccessful() else 1) "
result=$?
@@ -86,7 +86,7 @@ result = unittest.main() ; sys.exit(0 if result.wasSuccessful() else 1) "
echo "$test logging to $testlog"
if [ $is_graphical -eq 1 ]; then
# Graphical test: system already initialized, just add test paths
"$mpremote" exec "$(cat boot.py) ; sys.path.append('tests')
"$mpremote" exec "$(cat main.py) ; sys.path.append('tests')
$(cat $file)
result = unittest.main()
if result.wasSuccessful():
@@ -96,7 +96,7 @@ else:
" | tee "$testlog"
else
# Regular test: no boot files
"$mpremote" exec "$(cat boot.py)
"$mpremote" exec "$(cat main.py)
$(cat $file)
result = unittest.main()
if result.wasSuccessful():