當前位置: 首頁>>代碼示例>>Python>>正文


Python Constants.add_right_enbrace方法代碼示例

本文整理匯總了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
開發者ID:iamrainius,項目名稱:tct-shell,代碼行數:12,代碼來源:shellrunner.py

示例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
開發者ID:iamrainius,項目名稱:tct-shell,代碼行數:14,代碼來源:shellwrapper.py

示例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
開發者ID:iamrainius,項目名稱:tct-shell,代碼行數:17,代碼來源:shellrunner.py

示例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)
開發者ID:iamrainius,項目名稱:tct-shell,代碼行數:5,代碼來源:shellrunner.py

示例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)
開發者ID:iamrainius,項目名稱:tct-shell,代碼行數:5,代碼來源:shellrunner.py


注:本文中的constants.Constants.add_right_enbrace方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。