update DB table
This commit is contained in:
@@ -77,13 +77,16 @@ def run_test_suite(tasks):
|
||||
print(f"--- Starting Task: {task['id']} ---")
|
||||
|
||||
# Use Popen to stream output in real-time
|
||||
env = os.environ.copy()
|
||||
env["PYTHONUNBUFFERED"] = "1"
|
||||
process = subprocess.Popen(
|
||||
[shell_script, task['id'], task['cmd'], task['path'], REPO_PATH],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.STDOUT,
|
||||
text=True,
|
||||
bufsize=1,
|
||||
universal_newlines=True
|
||||
universal_newlines=True,
|
||||
env=env
|
||||
)
|
||||
|
||||
full_output = ""
|
||||
|
||||
Reference in New Issue
Block a user