diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2019-02-22 17:45:02 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2019-02-22 17:45:02 +0100 |
| commit | e7f5fb2bc7bc124bd2da0c21bc7f9ce6de034ff2 (patch) | |
| tree | 8521b00fb8ca045da1916ae0a4a07a267313b08b | |
| parent | 8fb74f194f33e1824fab9bea2286d45e38d8c375 (diff) | |
| download | allocbench-e7f5fb2bc7bc124bd2da0c21bc7f9ce6de034ff2.tar.gz allocbench-e7f5fb2bc7bc124bd2da0c21bc7f9ce6de034ff2.zip | |
fix perf check
| -rw-r--r-- | src/benchmark.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/benchmark.py b/src/benchmark.py index 4a23ecf..4658e01 100644 --- a/src/benchmark.py +++ b/src/benchmark.py @@ -137,7 +137,7 @@ class Benchmark (object): # check if perf is allowed on this system if self.measure_cmd == self.defaults["measure_cmd"]: - if perf_allowed == None: + if self.perf_allowed == None: res = subprocess.run(["perf", "stat", "ls"], stdout=None, stderr=subprocess.PIPE, universal_newlines=True) @@ -146,7 +146,7 @@ class Benchmark (object): print(res.stderr) perf_allowed = False - if not perf_allowed: + if not self.perf_allowed: print("Skipping", self.name, "because you don't have the", "needed permissions to use perf") return False |
