本文整理匯總了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)