Skip to content

Commit ee2be80

Browse files
unittest.sh: adapt to unified builds
1 parent 4aebc7b commit ee2be80

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/unittest.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,12 @@ one_test() {
6060
# Desktop execution
6161
if [ $is_graphical -eq 1 ]; then
6262
# Graphical test: include boot_unix.py and main.py
63-
"$binary" -X heapsize=8M -c "$(cat boot_unix.py main.py)
64-
import sys ; sys.path.append('lib') ; sys.path.append(\"$tests_abs_path\")
63+
"$binary" -X heapsize=8M -c "import sys ; sys.path.append('lib/') ; import mpos.main ; import mpos.apps; sys.path.append(\"$tests_abs_path\")
6564
$(cat $file)
6665
result = unittest.main() ; sys.exit(0 if result.wasSuccessful() else 1) "
6766
else
6867
# Regular test: no boot files
69-
"$binary" -X heapsize=8M -c "import sys ; sys.path.append('lib')
68+
"$binary" -X heapsize=8M -c "import sys ; sys.path.append('lib/')
7069
$(cat $file)
7170
result = unittest.main() ; sys.exit(0 if result.wasSuccessful() else 1) "
7271
fi

0 commit comments

Comments
 (0)