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