File tree Expand file tree Collapse file tree 4 files changed +10
-9
lines changed Expand file tree Collapse file tree 4 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ def test(expected, not_expected=[]):
22
22
print (f'\033 [92m[PASS]\033 [0m not found <{ pattern } >' )
23
23
else :
24
24
print (f'\033 [91m[FAIL]\033 [0m found <{ pattern } >' )
25
-
26
- print (f"Actual: { count } , Expected: { total } " )
25
+
27
26
print ('\n Test passed: %d/%d' % (count , total ))
28
27
assert count == total
Original file line number Diff line number Diff line change 10
10
r"time_msec = (\d+) after sleeping (\d+) ticks, delta = (\d+)ms!" ,
11
11
"Test sleep1 passed!" ,
12
12
13
- # ch3_taskinfo
14
- "string from task info test" ,
15
- "Test task info OK!" ,
13
+ # ch3_trace
14
+ "string from task trace test" ,
15
+ "Test trace OK!" ,
16
16
]
17
17
18
- print (f"Expected: { EXPECTED_3 } " )
19
-
20
18
if __name__ == "__main__" :
21
19
base .test (EXPECTED_3 )
Original file line number Diff line number Diff line change 14
14
15
15
# ch4_unmap2
16
16
"Test 04_6 ummap2 OK!" ,
17
+
18
+ # ch4_trace1
19
+ "Test trace_1 OK!" ,
17
20
]
18
21
19
22
NOT_EXPECTED_4 = NOT_EXPECTED_2b + [
Original file line number Diff line number Diff line change 15
15
]
16
16
17
17
EXPECTED_5 = list (set (EXPECTED_5 ) - set ([
18
- "string from task info test" ,
19
- "Test task info OK!" ,
18
+ "string from task trace test" ,
19
+ "Test trace OK!" ,
20
+ "Test trace_1 OK!" ,
20
21
]))
21
22
22
23
if __name__ == "__main__" :
You can’t perform that action at this time.
0 commit comments