Compare commits

...

2 Commits

Author SHA1 Message Date
Aidar Samerkhanov
1bf5bc62c4 Print stdout on Memgraph termination 2024-01-12 07:41:43 +00:00
Aidar Samerkhanov
db2b5c3c36 Add command execution print in CI stress test 2024-01-12 07:38:42 +00:00

View File

@@ -112,6 +112,8 @@ def start_memgraph(args: Args, memgraph_options: List[str]) -> Popen:
def stop_memgraph(proc_mg: Popen) -> None:
proc_mg.terminate()
for line in iter(proc_mg.stdout.readline, ""):
print(line)
ret_mg = proc_mg.wait()
if ret_mg != 0:
raise Exception("Memgraph binary returned non-zero ({})!".format(ret_mg))
@@ -144,6 +146,7 @@ def run_test(args: Args, test: str, options: List[str], timeout: int, mode: Data
]
+ options
)
print("Executing command '{}'".format(" ".join(cmd)))
start = time.time()
ret_test = subprocess.run(cmd, cwd=SCRIPT_DIR, timeout=timeout * 60)