We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a7ff348 + 32aab52 commit 859cd8bCopy full SHA for 859cd8b
src/mbed_os_tools/test/host_tests_runner/mbed_base.py
@@ -89,6 +89,11 @@ def get_remount_count(disk_path, tries=2):
89
"""! Get the remount count from 'DETAILS.TXT' file
90
@return Returns count, None if not-available
91
"""
92
+
93
+ #In case of no disk path, nothing to do
94
+ if disk_path is None:
95
+ return None
96
97
for cur_try in range(1, tries + 1):
98
try:
99
files_on_disk = [x.upper() for x in os.listdir(disk_path)]
0 commit comments