def exec_cmd(self, cmd_name, cmd):
    try:
        print('\t{0} cmd is {1}'.format(cmd_name, ' '.join(cmd)))
        subprocess.check_output(cmd)
    except Exception as ex:
        raise Exception('in {0}\nMessage:{1}\nTrace: {2}'.format(self.__class__.__name__, ex.message, traceback.format_exc()))
def exec_cmd(self, cmd_name, cmd):
    try:
        print('\t{0} cmd is {1}'.format(cmd_name, ' '.join(cmd)))
        subprocess.check_output(cmd)
    except Exception as ex:
        raise Exception('in {0}\nMessage:{1}\nTrace: {2}'.format(self.__class__.__name__, ex.message, traceback.format_exc()))