Skip to content

Commit f6fb647

Browse files
unittest.sh: make sure binary is executable
1 parent f8b936d commit f6fb647

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

internal_filesystem/lib/mpos/content/package_manager.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,8 @@ def install_mpk(temp_zip_path, dest_folder):
164164
@staticmethod
165165
def compare_versions(ver1: str, ver2: str) -> bool:
166166
"""Compare two version numbers (e.g., '1.2.3' vs '4.5.6').
167-
Returns True if ver1 is greater than ver2, False otherwise."""
167+
Returns True if ver1 is greater than ver2, False otherwise.
168+
Invalid or empty version numbers also result in False."""
168169
print(f"Comparing versions: {ver1} vs {ver2}")
169170
try:
170171
v1_parts = [int(x) for x in ver1.split('.')]

tests/unittest.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ else
1919
binary="$scriptdir"/../lvgl_micropython/build/lvgl_micropy_unix
2020
fi
2121

22+
binary=$(readlink -f "$binary")
23+
chmod +x "$binary"
24+
2225
one_test() {
2326
file="$1"
2427
pushd "$fs"

0 commit comments

Comments
 (0)