本文整理汇总了Python中TestRunner.executeShTest方法的典型用法代码示例。如果您正苦于以下问题:Python TestRunner.executeShTest方法的具体用法?Python TestRunner.executeShTest怎么用?Python TestRunner.executeShTest使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TestRunner
的用法示例。
在下文中一共展示了TestRunner.executeShTest方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: execute
# 需要导入模块: import TestRunner [as 别名]
# 或者: from TestRunner import executeShTest [as 别名]
def execute(self, test, litConfig):
execdir = os.path.dirname(test.getExecPath())
tmpBase = self.getTmpBase(test, litConfig)
res = self.getTestScript(test, litConfig, self.default_script)
if len(res) == 2:
return res
s, script, isXFail = res
script = self.applyScriptSubstitutions(test, litConfig, script,
tmpBase, normalize_slashes=self.execute_external)
return TestRunner.executeShTest(test, litConfig, script,
isXFail, tmpBase, execdir,
self.execute_external)
示例2: execute
# 需要导入模块: import TestRunner [as 别名]
# 或者: from TestRunner import executeShTest [as 别名]
def execute(self, test, litConfig):
return TestRunner.executeShTest(test, litConfig,
self.execute_external)