Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf6fb647

Browse files
unittest.sh: make sure binary is executable
1 parentf8b936d commitf6fb647

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
defcompare_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)forxinver1.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)

[8]ページ先頭

©2009-2025 Movatter.jp