File tree 1 file changed +10
-3
lines changed
1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 80
80
testcases,
81
81
) ?;
82
82
let mut generated_result = String :: new ( ) ;
83
- for testcase in testcases {
84
- let runner_result = runner. run ( & testcase) . await ;
83
+ for ( idx, testcase) in testcases. into_iter ( ) . enumerate ( ) {
84
+ let runner_result = runner
85
+ . run ( & testcase)
86
+ . instrument ( if let Some ( ref id) = testcase. id {
87
+ info_span ! ( "testcase" , id = id)
88
+ } else {
89
+ info_span ! ( "testcase" , idx = idx)
90
+ } )
91
+ . await ;
85
92
if !testcase. no_capture {
86
93
generate_result ( & testcase, & runner_result, & mut generated_result) ?;
87
94
}
95
102
96
103
Ok :: < _ , Error > ( ( ) )
97
104
}
98
- . instrument ( info_span ! ( "planner_test " , testname = testname. as_str( ) ) ) ,
105
+ . instrument ( info_span ! ( "file " , testname = testname. as_str( ) ) ) ,
99
106
)
100
107
. await
101
108
. with_context ( || format ! ( "when joining tokio task for testname={testname}" ) ) ?
You can’t perform that action at this time.
0 commit comments