From d79f43e1924fcb02a22b188f0e2482f5da708086 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sun, 9 Feb 2020 13:00:26 +0100 Subject: add benchmark directory to PATH during run all occurrences of benchmark dir in PATH will be erased at the end of run --- src/benchmark.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/benchmark.py b/src/benchmark.py index d234755..6debefd 100644 --- a/src/benchmark.py +++ b/src/benchmark.py @@ -351,6 +351,9 @@ class Benchmark: if self.measure_cmd.startswith("perf"): Benchmark.is_perf_allowed() + # add benchmark dir to PATH + os.environ["PATH"] += f"{os.pathsep}{src.globalvars.builddir}/benchmarks/{self.name}" + # save one valid result to expand invalid results valid_result = {} -- cgit v1.2.3