aboutsummaryrefslogtreecommitdiff
path: root/tests/test_ftrace.py
diff options
context:
space:
mode:
authorJavi Merino <javi.merino@arm.com>2016-03-08 13:59:25 +0000
committerJavi Merino <javi.merino@arm.com>2016-03-08 14:03:58 +0000
commit373c30fb1a6cbc6ae73ebe9017970901211f4e88 (patch)
tree4ddf779ea87aa21da1bde04b8f0ba1a2e6c3ef69 /tests/test_ftrace.py
parentfb2127422317ed2ed5dbc164be88dfc2cb243edd (diff)
downloadtrappy-373c30fb1a6cbc6ae73ebe9017970901211f4e88.tar.gz
tests: avoid matplotlib warning when running the testsuite
When you try to plot a dataframe with only one index, matplotlib complains: ---8<--- /usr/lib/python2.7/dist-packages/matplotlib/axes/_base.py:2787: UserWarning: Attempting to set identical left==right re sults in singular transformations; automatically expanding. left=0.0, right=0.0 'left=%s, right=%s') % (left, right)) ---8<--- Change the timestamp of the second event to make it more realistic and make sure that the dataframe that is plotted has more than one row.
Diffstat (limited to 'tests/test_ftrace.py')
-rw-r--r--tests/test_ftrace.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_ftrace.py b/tests/test_ftrace.py
index e0c8a13..234ec1c 100644
--- a/tests/test_ftrace.py
+++ b/tests/test_ftrace.py
@@ -272,7 +272,7 @@ class TestFTrace(BaseTestThermal):
"""Check that plot_allfreqs() works with one actor"""
in_data = """ kworker/4:1-397 [004] 720.741349: thermal_power_cpu_get: cpus=00000000,00000006 freq=1400000 raw_cpu_power=189 load={23, 12} power=14
- kworker/4:1-397 [004] 720.741349: thermal_power_cpu_limit: cpus=00000000,00000006 freq=1400000 cdev_state=1 power=14"""
+ kworker/4:1-397 [004] 720.741679: thermal_power_cpu_limit: cpus=00000000,00000006 freq=1400000 cdev_state=1 power=14"""
with open("trace.txt", "w") as fout:
fout.write(in_data)