Skip to content

Commit

Permalink
Move pending list for summary to the end just before fails as some te…
Browse files Browse the repository at this point in the history
…sts fail in the pending state, also test if it's expected
  • Loading branch information
ekluzek committed Apr 23, 2018
1 parent f2772c9 commit 5deb10f
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions parse_cime.cs.status
Original file line number Diff line number Diff line change
Expand Up @@ -328,21 +328,13 @@ sub print_categories {
print( "================================================================================\n" );
print( "Test summary\n" );
printf( "%d Total tests\n", $#keys+1 );
printf( "%d Tests pending\n", $#pendings+1 );
printf( "%d Tests passed\n", $#passes+1 );
printf( "%d Tests compare different to baseline\n", $#compares_diff+1 );
printf( "%d Tests are new where there is no baseline\n", $#compares_diff_nobase+1 );
printf( "%d Tests pending\n", $#pendings+1 );
printf( "%d Tests failed\n", $#fails+1 );
print( "================================================================================\n" );

if ( $#pendings >= 0 ) {
print( "================================================================================\n" );
print( "These tests are pending\n" );
print( "================================================================================\n" );
foreach my $key ( @pendings ) {
print( "$key\n" );
}
}
if ( $#passes >= 0 ) {
print( "================================================================================\n" );
print( "These tests passed\n" );
Expand Down Expand Up @@ -370,6 +362,17 @@ sub print_categories {
print( "$key\n" );
}
}
if ( $#pendings >= 0 ) {
print( "================================================================================\n" );
print( "These tests are pending (some tests may fail in the pending state)\n" );
print( "================================================================================\n" );
foreach my $key ( @pendings ) {
my $expect = "";
`grep $key $expectedfailfile > /dev/null`;
if ( $? == 0 ) { $expect = "EXPECTED"; }
print( "$key\t\t$expect\n" );
}
}
if ( $#fails >= 0 ) {
print( "================================================================================\n" );
print( "These tests failed\n" );
Expand Down

0 comments on commit 5deb10f

Please sign in to comment.