aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/benchmark.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/benchmark.py b/src/benchmark.py
index 4658e01..b766e9b 100644
--- a/src/benchmark.py
+++ b/src/benchmark.py
@@ -139,7 +139,8 @@ class Benchmark (object):
if self.measure_cmd == self.defaults["measure_cmd"]:
if self.perf_allowed == None:
res = subprocess.run(["perf", "stat", "ls"],
- stdout=None, stderr=subprocess.PIPE,
+ stdout=subprocess.PIPE,
+ stderr=subprocess.PIPE,
universal_newlines=True)
if res.returncode != 0:
print("Test perf run failed with:")