Skip to content

Commit 0402477

Browse files
author
Martin Jonáš
committed
Revert "Do not use walltime killer anymore."
This reverts commit 5452dd7.
1 parent e12e8a1 commit 0402477

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

smtcomp/tool.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
import sys, re
66
import os
77

8+
TIMEOUT_COMMAND = "./walltime_killer.py"
9+
TIMEOUT = "1200" # needs to be refactored!
10+
811

912
class SMTCompTool(BaseTool2): # type: ignore
1013
"""
@@ -87,13 +90,13 @@ def cmdline( # type: ignore
8790

8891
if options:
8992
# executable and options were overridden by the task definition
90-
return [*options, *tasks]
93+
return [TIMEOUT_COMMAND, TIMEOUT, *options, *tasks]
9194
else:
9295
# using default executable
93-
return [executable, *tasks]
96+
return [TIMEOUT_COMMAND, TIMEOUT, executable, *tasks]
9497

9598
def program_files(self, executable: str) -> Any:
96-
files = [executable] + self._program_files_from_executable(executable, self.REQUIRED_PATHS)
99+
files = [TIMEOUT_COMMAND, executable] + self._program_files_from_executable(executable, self.REQUIRED_PATHS)
97100
return files
98101

99102
@staticmethod

0 commit comments

Comments
 (0)