Skip to content

Commit de35595

Browse files
committed
update expected filename on fw update test
1 parent e5faf0b commit de35595

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

unit-tests/test-fw-update.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ def extract_version_from_filename(file_path):
5252
return None
5353

5454
filename = os.path.basename(file_path)
55-
match = re.search(r'[-_](\d+)[._](\d+)[._](\d+)[._](\d+)', filename)
55+
match = re.search(r'_(\d+)_(\d+)_(\d+)_(\d+).(bin|img)', filename)
5656
if match:
57-
groups = match.groups()
57+
groups = match.groups()[:-1] # exclude the file extension
5858
if groups[3] == '0':
5959
version_str = ".".join(groups[:3])
6060
else:

0 commit comments

Comments
 (0)