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