From dd9988944bedc475540d78b5fd03821f753eb16e Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Wed, 27 Feb 2019 12:49:44 +0100 Subject: don't print output of test ls call --- src/benchmark.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/benchmark.py') 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:") -- cgit v1.2.3