Skip to content

Commit

Permalink
Merge pull request #121 from mazimkhan/issue_120
Browse files Browse the repository at this point in the history
Fixing issue 120. Mock platforms don't work when importing mbed_lstools
  • Loading branch information
mazimkhan authored Aug 22, 2016
2 parents c7b78ae + f5c6ad3 commit 512be96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 2 additions & 0 deletions mbed_lstools/lstools_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
from os.path import isfile, join
from lockfile import LockFailed, LockTimeout


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

# Create in HOME directory place for mbed-ls to store information
self.mbedls_home_dir_init()
self.mbedls_get_mocks()

# Which OSs are supported by this module
# Note: more than one OS can be supported by mbed-lstools_* module
Expand Down
3 changes: 0 additions & 3 deletions mbed_lstools/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,6 @@ def get_mbedls_version():
mbeds.debug(__name__, "mbed-ls ver. " + get_mbedls_version())
mbeds.debug(__name__, "host: " + str((mbed_lstools_os_info())))

# Load extra mock configuration
mbeds.mbedls_get_mocks()

if not opts.skip_retarget:
mbeds.retarget()

Expand Down

0 comments on commit 512be96

Please sign in to comment.