Fix timeout printing
This commit is contained in:
@@ -42,7 +42,7 @@ class RepeatEntry(Entry):
|
||||
"""
|
||||
super().__init__(id, timestamp)
|
||||
self._script = script
|
||||
self._timeout = timeout or self.default_timeout
|
||||
self._timeout = timeout
|
||||
self._limit = limit or self.default_limit
|
||||
self._stdout = ""
|
||||
self._stderr = ""
|
||||
@@ -77,7 +77,7 @@ class RepeatEntry(Entry):
|
||||
try:
|
||||
process = subprocess.run(
|
||||
self._script,
|
||||
timeout=self._timeout,
|
||||
timeout=(self._timeout or self.default_timeout),
|
||||
shell=True,
|
||||
capture_output=True,
|
||||
text=True
|
||||
|
||||
@@ -42,7 +42,7 @@ class SingleEntry(Entry):
|
||||
"""
|
||||
super().__init__(id, timestamp)
|
||||
self._script = script
|
||||
self._timeout = timeout or self.default_timeout
|
||||
self._timeout = timeout
|
||||
self._limit = limit
|
||||
self._stdout = ""
|
||||
self._stderr = ""
|
||||
@@ -81,7 +81,7 @@ class SingleEntry(Entry):
|
||||
try:
|
||||
process = subprocess.run(
|
||||
self._script,
|
||||
timeout=self._timeout,
|
||||
timeout=(self._timeout or self.default_timeout),
|
||||
shell=True,
|
||||
capture_output=True,
|
||||
text=True
|
||||
|
||||
Reference in New Issue
Block a user