Commit 0a43879
committed
common_test: Fix cte_track suite name for suites without init_per_suite
When a suite does not export init_per_suite/1, Common Test uses
ct_framework as the callback module. The cte_track event handler
would then print "ct_framework:" instead of the actual suite name.
Fix by deferring the suite header when ct_framework handles
init_per_suite, then resolving it from the first tc_start event
that carries the real suite name (either init_per_group or a
test case).1 parent 73d1ce4 commit 0a43879
1 file changed
Lines changed: 22 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
70 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
71 | 76 | | |
72 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
73 | 93 | | |
74 | 94 | | |
75 | 95 | | |
| |||
0 commit comments