From 7798ecb93d8ef8fc243ac7e4feb15c9c50a87404 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sun, 9 Feb 2020 15:14:50 +0100 Subject: wait for server termination after executing the shutdown commands --- src/benchmark.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/benchmark.py b/src/benchmark.py index e3986d7..c96ff18 100644 --- a/src/benchmark.py +++ b/src/benchmark.py @@ -295,7 +295,7 @@ class Benchmark: """Start Servers Servers are not allowed to deamonize because then they can't - be terminated with their Popen object.""" + be terminated using their Popen object.""" substitutions = {"alloc": alloc_name, "perm": alloc_name, @@ -366,6 +366,9 @@ class Benchmark: print_debug("Stdout:", proc.stdout) print_debug("Stderr:", proc.stderr) + # wait for server termination + sleep(5) + Benchmark.terminate_subprocess(server["popen"]) def shutdown_servers(self): -- cgit v1.2.3