summaryrefslogtreecommitdiffstats
path: root/tools/perf/tests
diff options
context:
space:
mode:
authorAdrian Hunter <adrian.hunter@intel.com>2018-11-22 16:04:56 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-02-12 19:47:11 +0100
commit630e972bc405dfcf5897ca9241bae3b6be1f5740 (patch)
treee728e9ea06a7e2f4c440c1dcbd2b94f2c1a6dc81 /tools/perf/tests
parent283d0464734e3366b16d03efa423ce5c596fe295 (diff)
downloadlinux-stable-630e972bc405dfcf5897ca9241bae3b6be1f5740.tar.gz
linux-stable-630e972bc405dfcf5897ca9241bae3b6be1f5740.tar.bz2
linux-stable-630e972bc405dfcf5897ca9241bae3b6be1f5740.zip
perf test: Fix perf_event_attr test failure
[ Upstream commit 741dad88dde296999da30332157ca47f0543747d ] Fix inconsistent use of tabs and spaces error: # perf test 16 -v 16: Setup struct perf_event_attr : --- start --- test child forked, pid 20224 File "/usr/libexec/perf-core/tests/attr.py", line 119 log.warning("expected %s=%s, got %s" % (t, self[t], other[t])) ^ TabError: inconsistent use of tabs and spaces in indentation test child finished with -1 ---- end ---- Setup struct perf_event_attr: FAILED! Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Cc: Jiri Olsa <jolsa@redhat.com> Link: http://lkml.kernel.org/r/20181122140456.16817-1-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/perf/tests')
-rw-r--r--tools/perf/tests/attr.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/tests/attr.py b/tools/perf/tests/attr.py
index ff9b60b99f52..44090a9a19f3 100644
--- a/tools/perf/tests/attr.py
+++ b/tools/perf/tests/attr.py
@@ -116,7 +116,7 @@ class Event(dict):
if not self.has_key(t) or not other.has_key(t):
continue
if not data_equal(self[t], other[t]):
- log.warning("expected %s=%s, got %s" % (t, self[t], other[t]))
+ log.warning("expected %s=%s, got %s" % (t, self[t], other[t]))
# Test file description needs to have following sections:
# [config]