Пример #1
0
    def _execute(self, command):
        ext = extension(self.f.original)

        tlc = Invocation(command)(self.path, self.output, extension=ext)
        tlc.run(self.time)

        if tlc.exited and self.important:
            raise TimeoutException

        if tlc.returncode != 0 and self.important:
            raise ProcessingException
Пример #2
0
    def _execute(self, command, ignoreNonZero=False):
        ext = extension(self.f.original)

        tlc = Invocation(command)(self.path, self.output, extension=ext)
        tlc.run(self.time if not self.ignore_limit else None)

        if tlc.exited and self.important:
            raise TimeoutException

        if tlc.returncode != 0 and self.important and not ignoreNonZero:
            raise ProcessingException
Пример #3
0
    def _execute(self, command, ignoreNonZero = False):
        ext = extension(self.f.original)

        tlc = Invocation(command)(self.path, self.output, extension=ext)
        tlc.run(self.time if not self.ignore_limit else None)

        if tlc.exited and self.important:
            raise TimeoutException

        if tlc.returncode != 0 and self.important and not ignoreNonZero:
            raise ProcessingException
Пример #4
0
    def _execute(self, command):
        ext = extension(self.f.original)

        tlc = Invocation(command)(self.path, self.output, extension=ext)
        tlc.run(self.time)

        if tlc.exited and self.important:
            raise TimeoutException

        if tlc.returncode != 0 and self.important:
            raise ProcessingException