aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2020-02-09 13:00:26 +0100
committerFlorian Fischer <florian.fl.fischer@fau.de>2020-02-09 13:00:26 +0100
commitd79f43e1924fcb02a22b188f0e2482f5da708086 (patch)
treecb7d64e00c0a15313f1b497287453650bed0e8bc
parentbf565bf4342a08611d3b3405188352487cb0d211 (diff)
downloadallocbench-d79f43e1924fcb02a22b188f0e2482f5da708086.tar.gz
allocbench-d79f43e1924fcb02a22b188f0e2482f5da708086.zip
add benchmark directory to PATH during run
all occurrences of benchmark dir in PATH will be erased at the end of run
-rw-r--r--src/benchmark.py3
1 files changed, 3 insertions, 0 deletions
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 = {}