aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2019-08-24 17:53:26 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2019-08-24 17:53:26 +0200
commit58c59ddc21357c9d9f2cefef2332b770568d1b78 (patch)
treed452099fc55c506ac157acd11cb73969f1ed0538
parent77fba735aeecf69997034bfb33611489b85ba3b4 (diff)
downloadallocbench-58c59ddc21357c9d9f2cefef2332b770568d1b78.tar.gz
allocbench-58c59ddc21357c9d9f2cefef2332b770568d1b78.zip
only call shutdown_servers if there are servers
-rw-r--r--src/benchmark.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/benchmark.py b/src/benchmark.py
index 1805922..dddee69 100644
--- a/src/benchmark.py
+++ b/src/benchmark.py
@@ -410,7 +410,8 @@ class Benchmark (object):
if os.getcwd() != cwd:
os.chdir(cwd)
- self.shutdown_servers()
+ if self.server_cmds != []:
+ self.shutdown_servers()
if hasattr(self, "postallocator_hook"):
self.postallocator_hook((alloc_name, alloc), run,