aboutsummaryrefslogtreecommitdiff
path: root/src/benchmarks/redis.py
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2019-09-11 18:03:34 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2019-09-11 19:08:13 +0200
commit558bed67565110bb01dc56ef135b86c113b8b32a (patch)
tree3657df330cde2fdb14dc00a5b117e16ef4957111 /src/benchmarks/redis.py
parent84374b4b4e41c4bb7896092c10098b5e6b5f68c1 (diff)
downloadallocbench-558bed67565110bb01dc56ef135b86c113b8b32a.tar.gz
allocbench-558bed67565110bb01dc56ef135b86c113b8b32a.zip
don't exit if we fail to prepare a benchmark
benchmark.prepare should raise an Exception if it encounters an unrecoverable, intolerable error.
Diffstat (limited to 'src/benchmarks/redis.py')
-rw-r--r--src/benchmarks/redis.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/benchmarks/redis.py b/src/benchmarks/redis.py
index 0afddba..d67559a 100644
--- a/src/benchmarks/redis.py
+++ b/src/benchmarks/redis.py
@@ -74,27 +74,18 @@ class BenchmarkRedis(Benchmark):
# delete archive
if proc.returncode == 0:
os.remove(redis_archive)
- else:
- return False
# building redis
proc = subprocess.run(["make", "-C", redis_dir],
# stdout=subprocess.PIPE, stderr=subprocess.PIPE,
universal_newlines=True)
- if proc.returncode != 0:
- return False
-
-
# create symlinks
for exe in ["redis-cli", "redis-server", "redis-benchmark"]:
src = os.path.join(redis_dir, "src", exe)
dest = os.path.join(self.build_dir, exe)
os.link(src, dest)
- return True
-
-
@staticmethod
def process_output(result, stdout, stderr, allocator, perm):
result["requests"] = REQUESTS_RE.search(stdout).group("requests")