File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
tests/difftests/runner/src Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -17,13 +17,17 @@ mod runner;
17
17
mod testcase;
18
18
19
19
pub fn run ( ) -> Result < ExitCode > {
20
- let subscriber = FmtSubscriber :: builder ( )
21
- . with_env_filter ( tracing_subscriber:: EnvFilter :: from_default_env ( ) )
22
- . finish ( ) ;
23
- tracing:: subscriber:: set_global_default ( subscriber) . expect ( "Failed to set global subscriber" ) ;
24
-
25
20
let mut args = Arguments :: from_args ( ) ;
26
21
22
+ // list must not print anything else to stdout
23
+ if !args. list {
24
+ let subscriber = FmtSubscriber :: builder ( )
25
+ . with_env_filter ( tracing_subscriber:: EnvFilter :: from_default_env ( ) )
26
+ . finish ( ) ;
27
+ tracing:: subscriber:: set_global_default ( subscriber)
28
+ . expect ( "Failed to set global subscriber" ) ;
29
+ }
30
+
27
31
// If filters are provided that look like paths (contain '/'), convert them to test names
28
32
if let Some ( filter) = & mut args. filter {
29
33
* filter = filter. replace ( '/' , "::" ) ;
You can’t perform that action at this time.
0 commit comments