Beispiel #1
0
    def pgset(self, command):
        file = open(self.pgdev, 'w')
        file.write(command + '\n');
        file.close

        if not utils.grep('Result: OK', self.pgdev):
            if not utils.grep('Result: NA', self.pgdev):
                utils.system('cat ' + self.pgdev)
Beispiel #2
0
    def pgset(self, command):
        file = open(self.pgdev, 'w')
        file.write(command + '\n')
        file.close

        if not utils.grep('Result: OK', self.pgdev):
            if not utils.grep('Result: NA', self.pgdev):
                utils.system('cat ' + self.pgdev)
    def run_once(self):
        """Runs the test."""

        if not utils.get_oldest_pid_by_name(self._APP_SHELL_EXECUTABLE):
            raise error.TestFail('Didn\'t find a process named "%s"' %
                                 self._APP_SHELL_EXECUTABLE)

        if not utils.grep(self._STARTUP_MESSAGE, self._LOG_FILE):
            raise error.TestFail('"%s" isn\'t present in %s' %
                                 (self._STARTUP_MESSAGE, self._LOG_FILE))
Beispiel #4
0
def modules_needed(config):
    return (utils.grep('CONFIG_MODULES=y', config) and utils.grep('=m', config))
Beispiel #5
0
def modules_needed(config):
    return (utils.grep('CONFIG_MODULES=y', config)
            and utils.grep('=m', config))