Skip to content

Commit 859cd8b

Browse files
authored
Merge branch 'master' into workaround_stlink_plugin_enter_bug
2 parents a7ff348 + 32aab52 commit 859cd8b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/mbed_os_tools/test/host_tests_runner/mbed_base.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,11 @@ def get_remount_count(disk_path, tries=2):
8989
"""! Get the remount count from 'DETAILS.TXT' file
9090
@return Returns count, None if not-available
9191
"""
92+
93+
#In case of no disk path, nothing to do
94+
if disk_path is None:
95+
return None
96+
9297
for cur_try in range(1, tries + 1):
9398
try:
9499
files_on_disk = [x.upper() for x in os.listdir(disk_path)]

0 commit comments

Comments
 (0)