示例#1
0
 def runTest(self):
     board.check_output('lsmod | wc -l')
     tmp = re.search('\d+', board.before)
     num = int(tmp.group(0)) - 1 # subtract header line
     board.check_output('lsmod | sort')
     self.result_message = '%s kernel modules are loaded.' % num
     self.logged['num_loaded'] = num
示例#2
0
 def runTest(self):
     board.check_output('lsmod | wc -l')
     tmp = re.search('\d+', board.before)
     num = int(tmp.group(0)) - 1  # subtract header line
     board.check_output('lsmod | sort')
     self.result_message = '%s kernel modules are loaded.' % num
     self.logged['num_loaded'] = num
示例#3
0
 def runTest(self):
     board.check_output('cat /etc/openwrt_release', timeout=6)
     info = dict(
         re.findall('DISTRIB_([a-zA-Z]+)=[\'"]([^"\']+)[\'"]',
                    board.before))
     self.result_message = 'Openwrt release is "%(RELEASE)s", revision "%(REVISION)s", and codename "%(CODENAME)s".' % info
     self.logged['rev'] = info['REVISION']
     self.logged['name'] = info['CODENAME']
示例#4
0
文件: status.py 项目: qca/boardfarm
 def runTest(self):
     board.check_output('date')
     board.check_output('sleep 60', timeout=70)
     board.check_output('date')
示例#5
0
 def runTest(self):
     board.check_output('cat /etc/openwrt_release', timeout=6)
     info = dict(re.findall('DISTRIB_([a-zA-Z]+)=[\'"]([^"\']+)[\'"]', board.before))
     self.result_message = 'Openwrt release is "%(RELEASE)s", revision "%(REVISION)s", and codename "%(CODENAME)s".' % info
     self.logged['rev'] = info['REVISION']
     self.logged['name'] = info['CODENAME']
示例#6
0
 def runTest(self):
     board.check_output('date')
     board.check_output('sleep 60', timeout=70)
     board.check_output('date')