From ee2be8083b7adc5427f46199cf45554546dd7150 Mon Sep 17 00:00:00 2001 From: Thomas Farstrike Date: Sat, 22 Nov 2025 09:39:23 +0100 Subject: [PATCH] unittest.sh: adapt to unified builds --- tests/unittest.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/unittest.sh b/tests/unittest.sh index 76264a3f..15539a97 100755 --- a/tests/unittest.sh +++ b/tests/unittest.sh @@ -60,13 +60,12 @@ 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_unix.py main.py) -import sys ; sys.path.append('lib') ; sys.path.append(\"$tests_abs_path\") + "$binary" -X heapsize=8M -c "import sys ; sys.path.append('lib/') ; 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) " else # Regular test: no boot files - "$binary" -X heapsize=8M -c "import sys ; sys.path.append('lib') + "$binary" -X heapsize=8M -c "import sys ; sys.path.append('lib/') $(cat $file) result = unittest.main() ; sys.exit(0 if result.wasSuccessful() else 1) " fi