Skip to content
This repository has been archived by the owner on Nov 26, 2021. It is now read-only.

Commit

Permalink
Update new tests for the common clock infrastructure.
Browse files Browse the repository at this point in the history
Fix nosetests, code was developed against an older version that had
__tgid as one of the columns.

Change-Id: I75631f4cc0be46da1faf187fbd749ad2aafeb0c9
  • Loading branch information
kdub committed Oct 19, 2017
1 parent 5dd905b commit d43412e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_common_clk.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,18 @@ def test_common_clk_set_rate_can_be_parsed(self):
trace = trappy.FTrace("trace_common_clk.txt", events=['clock_set_rate'])
df = trace.clock_set_rate.data_frame
self.assertSetEqual(set(df.columns),
set(["__comm", "__cpu", "__line", "__pid", "__tgid", "cpu_id", "clk_name", "rate"]))
set(["__comm", "__cpu", "__line", "__pid", "cpu_id", "clk_name", "rate"]))

def test_common_clk_enable_can_be_parsed(self):
"""TestCommonClk: test that clock_enable events can be parsed"""
trace = trappy.FTrace("trace_common_clk.txt", events=['clock_enable'])
df = trace.clock_enable.data_frame
self.assertSetEqual(set(df.columns),
set(["__comm", "__cpu", "__line", "__pid", "__tgid", "cpu_id", "clk_name", "state"]))
set(["__comm", "__cpu", "__line", "__pid", "cpu_id", "clk_name", "state"]))

def test_common_clk_disable_can_be_parsed(self):
"""TestCommonClk: test that clock_disable events can be parsed"""
trace = trappy.FTrace("trace_common_clk.txt", events=['clock_disable'])
df = trace.clock_disable.data_frame
self.assertSetEqual(set(df.columns),
set(["__comm", "__cpu", "__line", "__pid", "__tgid", "cpu_id", "clk_name", "state"]))
set(["__comm", "__cpu", "__line", "__pid", "cpu_id", "clk_name", "state"]))

0 comments on commit d43412e

Please sign in to comment.