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;
1717mod testcase;
1818
1919pub 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-
2520 let mut args = Arguments :: from_args ( ) ;
2621
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+
2731 // If filters are provided that look like paths (contain '/'), convert them to test names
2832 if let Some ( filter) = & mut args. filter {
2933 * filter = filter. replace ( '/' , "::" ) ;
You can’t perform that action at this time.
0 commit comments