Skip to content

Commit 512be96

Browse files
authored
Merge pull request #121 from mazimkhan/issue_120
Fixing issue 120. Mock platforms don't work when importing mbed_lstools
2 parents c7b78ae + f5c6ad3 commit 512be96

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

mbed_lstools/lstools_base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
from os.path import isfile, join
2525
from lockfile import LockFailed, LockTimeout
2626

27+
2728
class MbedLsToolsBase:
2829
""" Base class for mbed-lstools, defines mbed-ls tools interface for mbed-enabled devices detection for various hosts
2930
"""
@@ -37,6 +38,7 @@ def __init__(self):
3738

3839
# Create in HOME directory place for mbed-ls to store information
3940
self.mbedls_home_dir_init()
41+
self.mbedls_get_mocks()
4042

4143
# Which OSs are supported by this module
4244
# Note: more than one OS can be supported by mbed-lstools_* module

mbed_lstools/main.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,6 @@ def get_mbedls_version():
170170
mbeds.debug(__name__, "mbed-ls ver. " + get_mbedls_version())
171171
mbeds.debug(__name__, "host: " + str((mbed_lstools_os_info())))
172172

173-
# Load extra mock configuration
174-
mbeds.mbedls_get_mocks()
175-
176173
if not opts.skip_retarget:
177174
mbeds.retarget()
178175

0 commit comments

Comments
 (0)