本文整理汇总了Python中constants.Constants.add_right_enbrace方法的典型用法代码示例。如果您正苦于以下问题:Python Constants.add_right_enbrace方法的具体用法?Python Constants.add_right_enbrace怎么用?Python Constants.add_right_enbrace使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类constants.Constants
的用法示例。
在下文中一共展示了Constants.add_right_enbrace方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: generate_rerun_params
# 需要导入模块: from constants import Constants [as 别名]
# 或者: from constants.Constants import add_right_enbrace [as 别名]
def generate_rerun_params(self):
f = "-f \""
param = Constants.EXECUTE_PREFF + "\"" + Constants.WRT_LAUNCHR_CMD
for suite in self.suites.keys():
suite_obj = self.suites[suite]
f += "%s " % suite_obj.get_rerunxml_name()
param += " %s" % suite
f = Constants.add_right_enbrace(f)
param = Constants.add_right_enbrace(param)
return f + param + Constants.RERUN_OUTPUT
示例2: get_suite_param
# 需要导入模块: from constants import Constants [as 别名]
# 或者: from constants.Constants import add_right_enbrace [as 别名]
def get_suite_param(self):
param = Constants.XMLFILE_PREFF + "\""
for suite_name in self.options.suites:
param += "%s " % suite_name
param = Constants.add_right_enbrace(param)
param += Constants.EXECUTE_PREFF + ("\" %s " % Constants.WRT_LAUNCHR_CMD)
for e_name in self.options.suites:
param += "%s " % e_name
param = Constants.add_right_enbrace(param)
return param
示例3: generate_params
# 需要导入模块: from constants import Constants [as 别名]
# 或者: from constants.Constants import add_right_enbrace [as 别名]
def generate_params(self):
f = Constants.XMLFILE_PREFF + "\""
tmp = ""
for suite in self.suites.keys():
suite_obj = self.suites[suite]
p_name = suite[0: suite.find("tests")] + "tests"
f += Constants.DEVICE_TESTS_FILE % p_name
if suite_obj.get_command().startswith(Constants.WRT_LAUNCHR_CMD):
tmp += "%s " % suite_obj.get_command()[(len(Constants.WRT_LAUNCHR_CMD) + 1):]
f = Constants.add_right_enbrace(f)
e = ""
if not tmp.isspace():
e = Constants.EXECUTE_PREFF + "\"" + Constants.WRT_LAUNCHR_CMD +" " + tmp
e = Constants.add_right_enbrace(e)
return f + " " + e
示例4: get_e
# 需要导入模块: from constants import Constants [as 别名]
# 或者: from constants.Constants import add_right_enbrace [as 别名]
def get_e(self):
e = Constants.EXECUTE_PREFF + "\"" + Constants.WRT_LAUNCHR_CMD + " %s" % self.get_name()
return Constants.add_right_enbrace(e)
示例5: get_f
# 需要导入模块: from constants import Constants [as 别名]
# 或者: from constants.Constants import add_right_enbrace [as 别名]
def get_f(self):
f = Constants.XMLFILE_PREFF + "\"" + Constants.DEVICE_TESTS_FILE % self.get_name()
return Constants.add_right_enbrace(f)