diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2020-02-09 13:00:26 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2020-02-09 13:00:26 +0100 |
| commit | d79f43e1924fcb02a22b188f0e2482f5da708086 (patch) | |
| tree | cb7d64e00c0a15313f1b497287453650bed0e8bc | |
| parent | bf565bf4342a08611d3b3405188352487cb0d211 (diff) | |
| download | allocbench-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.py | 3 |
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 = {} |
