Skip to content

Commit 5deb10f

Browse files
committed
Move pending list for summary to the end just before fails as some tests fail in the pending state, also test if it's expected
1 parent f2772c9 commit 5deb10f

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

parse_cime.cs.status

+12-9
Original file line numberDiff line numberDiff line change
@@ -328,21 +328,13 @@ sub print_categories {
328328
print( "================================================================================\n" );
329329
print( "Test summary\n" );
330330
printf( "%d Total tests\n", $#keys+1 );
331-
printf( "%d Tests pending\n", $#pendings+1 );
332331
printf( "%d Tests passed\n", $#passes+1 );
333332
printf( "%d Tests compare different to baseline\n", $#compares_diff+1 );
334333
printf( "%d Tests are new where there is no baseline\n", $#compares_diff_nobase+1 );
334+
printf( "%d Tests pending\n", $#pendings+1 );
335335
printf( "%d Tests failed\n", $#fails+1 );
336336
print( "================================================================================\n" );
337337

338-
if ( $#pendings >= 0 ) {
339-
print( "================================================================================\n" );
340-
print( "These tests are pending\n" );
341-
print( "================================================================================\n" );
342-
foreach my $key ( @pendings ) {
343-
print( "$key\n" );
344-
}
345-
}
346338
if ( $#passes >= 0 ) {
347339
print( "================================================================================\n" );
348340
print( "These tests passed\n" );
@@ -370,6 +362,17 @@ sub print_categories {
370362
print( "$key\n" );
371363
}
372364
}
365+
if ( $#pendings >= 0 ) {
366+
print( "================================================================================\n" );
367+
print( "These tests are pending (some tests may fail in the pending state)\n" );
368+
print( "================================================================================\n" );
369+
foreach my $key ( @pendings ) {
370+
my $expect = "";
371+
`grep $key $expectedfailfile > /dev/null`;
372+
if ( $? == 0 ) { $expect = "EXPECTED"; }
373+
print( "$key\t\t$expect\n" );
374+
}
375+
}
373376
if ( $#fails >= 0 ) {
374377
print( "================================================================================\n" );
375378
print( "These tests failed\n" );

0 commit comments

Comments
 (0)