当前位置: 首页>>代码示例>>Python>>正文


Python RuntestBase.preProcessTests方法代码示例

本文整理汇总了Python中util.runtestBase.RuntestBase.preProcessTests方法的典型用法代码示例。如果您正苦于以下问题:Python RuntestBase.preProcessTests方法的具体用法?Python RuntestBase.preProcessTests怎么用?Python RuntestBase.preProcessTests使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在util.runtestBase.RuntestBase的用法示例。


在下文中一共展示了RuntestBase.preProcessTests方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: preProcessTests

# 需要导入模块: from util.runtestBase import RuntestBase [as 别名]
# 或者: from util.runtestBase.RuntestBase import preProcessTests [as 别名]
 def preProcessTests(self):
     RuntestBase.preProcessTests(self)
     # Are we running esc - depends on a valid avm
     if self.runESC:
         self.runSource = True
         # generate the executable cmd for esc
         #escAbcs = [f for f in os.listdir(self.escbin) if f.endswith('.abc')] #not all abcs are used for esc
         escAbcs = ['debug','util','bytes-tamarin','util-tamarin','lex-char','lex-token',
                    'lex-scan','ast','ast-decode','parse','asm','abc','emit','cogen',
                    'cogen-stmt','cogen-expr','esc-core','eval-support','esc-env','main']
         if not self.escbin.endswith('/'):
             self.escbin += '/'
         for f in escAbcs:
             self.avm += ' %s%s.es.abc' % (self.escbin, f)
         self.avm += ' -- '
         self.avm += ' %s../test/spidermonkey-prefix.es' % self.escbin  #needed to run shell harness
     if self.androidthreads:
         p=subprocess.Popen('adb devices',shell=True,stdout=subprocess.PIPE,stderr=subprocess.PIPE)
         (out,err)=p.communicate()
         out = out.decode('latin_1','replace')
         out = out.split('\n')
         for line in out:
             items=line.split()
             if len(items)==2 and items[1]=='device':
                 for i in range(self.threads):
                     self.androiddevices.append(items[0])
         if len(self.androiddevices)==0:
             print("error: adb did not detect any attached devices")
             print("adb devices stdout: %s stderr: %s" % (out,err))
             sys.exit(1)
         print("detected %d android devices" % (len(self.androiddevices)/self.threads))
         self.threads=len(self.androiddevices)
开发者ID:bsdf,项目名称:trx,代码行数:34,代码来源:runtests.py

示例2: preProcessTests

# 需要导入模块: from util.runtestBase import RuntestBase [as 别名]
# 或者: from util.runtestBase.RuntestBase import preProcessTests [as 别名]
 def preProcessTests(self):
     RuntestBase.preProcessTests(self)
     # Are we running esc - depends on a valid avm
     if self.runESC:
         self.runSource = True
         # generate the executable cmd for esc
         #escAbcs = [f for f in os.listdir(self.escbin) if f.endswith('.abc')] #not all abcs are used for esc
         escAbcs = ['debug','util','bytes-tamarin','util-tamarin','lex-char','lex-token',
                    'lex-scan','ast','ast-decode','parse','asm','abc','emit','cogen',
                    'cogen-stmt','cogen-expr','esc-core','eval-support','esc-env','main']
         if not self.escbin.endswith('/'):
             self.escbin += '/'
         for f in escAbcs:
             self.avm += ' %s%s.es.abc' % (self.escbin, f)
         self.avm += ' -- '
         self.avm += ' %s../test/spidermonkey-prefix.es' % self.escbin  #needed to run shell harness
开发者ID:zwetan,项目名称:tessa,代码行数:18,代码来源:runtests.py


注:本文中的util.runtestBase.RuntestBase.preProcessTests方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。