Fix timeout printing

This commit is contained in:
2024-11-16 21:57:15 +01:00
parent c44d0ffbdf
commit 410e2b56f9
3 changed files with 6 additions and 4 deletions

View File

@@ -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

View File

@@ -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

2
todo.txt Normal file
View File

@@ -0,0 +1,2 @@
flag for auto tab switch
flag for auto scroll