Example #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
Example #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
Example #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
Example #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