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.
1 parent 0a51605 commit e2d4dadCopy full SHA for e2d4dad
src/mbed_os_tools/test/host_tests_runner/mbed_base.py
@@ -88,6 +88,11 @@ def get_remount_count(disk_path, tries=2):
88
"""! Get the remount count from 'DETAILS.TXT' file
89
@return Returns count, None if not-available
90
"""
91
+
92
+ #In case of no disk path, nothing to do
93
+ if disk_path is None:
94
+ return None
95
96
for cur_try in range(1, tries + 1):
97
try:
98
files_on_disk = [x.upper() for x in os.listdir(disk_path)]
0 commit comments