Adding checks so smart copy is only imported if mbedls is available

pull/1356/head
Brian Daniels 2015-09-10 18:24:40 -05:00
parent 19978dd9a8
commit 2fa3b5fda9
1 changed files with 12 additions and 2 deletions

View File

@ -21,7 +21,12 @@ import host_test_registry
import module_copy_mbed
import module_copy_shell
import module_copy_silabs
import module_copy_smart
try:
import module_copy_smart
except:
pass
#import module_copy_firefox
import module_copy_mps2
@ -38,7 +43,12 @@ HOST_TEST_PLUGIN_REGISTRY = host_test_registry.HostTestRegistry()
# Some plugins are commented out if they are not stable or not commonly used
HOST_TEST_PLUGIN_REGISTRY.register_plugin(module_copy_mbed.load_plugin())
HOST_TEST_PLUGIN_REGISTRY.register_plugin(module_copy_shell.load_plugin())
HOST_TEST_PLUGIN_REGISTRY.register_plugin(module_copy_smart.load_plugin())
try:
HOST_TEST_PLUGIN_REGISTRY.register_plugin(module_copy_smart.load_plugin())
except:
pass
HOST_TEST_PLUGIN_REGISTRY.register_plugin(module_reset_mbed.load_plugin())
#HOST_TEST_PLUGIN_REGISTRY.register_plugin(module_copy_firefox.load_plugin())