From 558bed67565110bb01dc56ef135b86c113b8b32a Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Wed, 11 Sep 2019 18:03:34 +0200 Subject: don't exit if we fail to prepare a benchmark benchmark.prepare should raise an Exception if it encounters an unrecoverable, intolerable error. --- src/benchmarks/redis.py | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/benchmarks/redis.py') 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") -- cgit v1.2.3