Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
: thermostat
: topaz
"""
args = shlex.split(line)
if (len(args) != 2):
print "Usage:"
self.do_help('start-system-test')
return
productName = args[0]
testId = int(args[1])
if productName not in WeaveDeviceMgr.SystemTest_ProductList.keys():
print "Unknown product for system tests: %s" % productName
print "Usage:"
self.do_help('start-system-test')
return
try:
self.devMgr.StartSystemTest(WeaveDeviceMgr.SystemTest_ProductList[productName], testId)
except WeaveDeviceMgr.DeviceManagerException, ex:
print str(ex)
return
print "Start system test complete"