@@ -579,7 +579,7 @@ static int __cmd_test(struct test_suite **suites, int argc, const char *argv[],
579
579
return err ;
580
580
}
581
581
582
- static int perf_test__list (struct test_suite * * suites , int argc , const char * * argv )
582
+ static int perf_test__list (FILE * fp , struct test_suite * * suites , int argc , const char * * argv )
583
583
{
584
584
int curr_suite = 0 ;
585
585
@@ -589,13 +589,13 @@ static int perf_test__list(struct test_suite **suites, int argc, const char **ar
589
589
if (!perf_test__matches (test_description (* t , -1 ), curr_suite , argc , argv ))
590
590
continue ;
591
591
592
- pr_info ( "%3d: %s\n" , curr_suite + 1 , test_description (* t , -1 ));
592
+ fprintf ( fp , "%3d: %s\n" , curr_suite + 1 , test_description (* t , -1 ));
593
593
594
594
if (test_suite__num_test_cases (* t ) <= 1 )
595
595
continue ;
596
596
597
597
test_suite__for_each_test_case (* t , curr_test_case ) {
598
- pr_info ( "%3d: %1d: %s\n" , curr_suite + 1 , curr_test_case + 1 ,
598
+ fprintf ( fp , "%3d. %1d: %s\n" , curr_suite + 1 , curr_test_case + 1 ,
599
599
test_description (* t , curr_test_case ));
600
600
}
601
601
}
@@ -721,7 +721,7 @@ int cmd_test(int argc, const char **argv)
721
721
argc = parse_options_subcommand (argc , argv , test_options , test_subcommands , test_usage , 0 );
722
722
if (argc >= 1 && !strcmp (argv [0 ], "list" )) {
723
723
suites = build_suites ();
724
- ret = perf_test__list (suites , argc - 1 , argv + 1 );
724
+ ret = perf_test__list (stdout , suites , argc - 1 , argv + 1 );
725
725
free (suites );
726
726
return ret ;
727
727
}
0 commit comments