Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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']
Exemplo n.º 4
0
 def runTest(self):
     board.check_output('date')
     board.check_output('sleep 60', timeout=70)
     board.check_output('date')
Exemplo n.º 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']
Exemplo n.º 6
0
 def runTest(self):
     board.check_output('date')
     board.check_output('sleep 60', timeout=70)
     board.check_output('date')