This repository was archived by the owner on Nov 26, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed
Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,6 @@ def test_get_pids_for_process_funny_process_names(self):
4646 from bart .sched .functions import get_pids_for_process
4747
4848 trace_file = "trace.txt"
49- raw_trace_file = "trace.raw.txt"
5049 in_data = """ <idle>-0 [001] 10826.894644: sched_switch: prev_comm=swapper/1 prev_pid=0 prev_prio=120 prev_state=0 next_comm=rt-app next_pid=3268 next_prio=120
5150 wmig-3268 [001] 10826.894778: sched_switch: prev_comm=wmig prev_pid=3268 prev_prio=120 prev_state=1 next_comm=rt-app next_pid=3269 next_prio=120
5251 wmig1-3269 [001] 10826.905152: sched_switch: prev_comm=wmig1 prev_pid=3269 prev_prio=120 prev_state=1 next_comm=wmig next_pid=3268 next_prio=120
@@ -57,16 +56,8 @@ def test_get_pids_for_process_funny_process_names(self):
5756 wmig1-3269 [005] 10827.031061: sched_switch: prev_comm=wmig1 prev_pid=3269 prev_prio=120 prev_state=0 next_comm=wmig next_pid=3268 next_prio=120
5857 wmig-3268 [005] 10827.050645: sched_switch: prev_comm=wmig prev_pid=3268 prev_prio=120 prev_state=1 next_comm=swapper/5 next_pid=0 next_prio=120
5958"""
60-
61- # We create an empty trace.txt to please trappy ...
6259 with open (trace_file , "w" ) as fout :
63- fout .write ("" )
64-
65- # ... but we only put the sched_switch events in the raw trace
66- # file because that's where trappy is going to look for
67- with open (raw_trace_file , "w" ) as fout :
6860 fout .write (in_data )
6961
7062 trace = trappy .FTrace (trace_file )
71-
7263 self .assertEquals (get_pids_for_process (trace , "wmig" ), [3268 ])
You can’t perform that action at this time.
0 commit comments