@@ -111,14 +111,13 @@ class WPTReport {
111
111
112
112
write ( ) {
113
113
this . time_end = Date . now ( ) ;
114
- const results = Array . from ( this . results . values ( ) ) . filter ( ( result ) => {
115
- return result . status === 'SKIP' || result . subtests . length !== 0 ;
116
- } ) . map ( ( result ) => {
117
- const url = new URL ( result . test , 'http://wpt' ) ;
118
- url . pathname = url . pathname . replace ( / \. j s $ / , '.html' ) ;
119
- result . test = url . href . slice ( url . origin . length ) ;
120
- return result ;
121
- } ) ;
114
+ const results = Array . from ( this . results . values ( ) )
115
+ . map ( ( result ) => {
116
+ const url = new URL ( result . test , 'http://wpt' ) ;
117
+ url . pathname = url . pathname . replace ( / \. j s $ / , '.html' ) ;
118
+ result . test = url . href . slice ( url . origin . length ) ;
119
+ return result ;
120
+ } ) ;
122
121
123
122
/**
124
123
* Return required and some optional properties
@@ -687,6 +686,7 @@ class WPTRunner {
687
686
return ;
688
687
}
689
688
// Generate a subtest failure for visibility.
689
+ // No need to record this synthetic failure with wpt.fyi.
690
690
this . fail (
691
691
spec ,
692
692
{
@@ -696,7 +696,6 @@ class WPTRunner {
696
696
stack : inspect ( err ) ,
697
697
} ,
698
698
kUncaught ,
699
- reportResult ,
700
699
) ;
701
700
// Mark the whole test as failed in wpt.fyi report.
702
701
reportResult ?. finish ( 'ERROR' ) ;
@@ -709,6 +708,7 @@ class WPTRunner {
709
708
710
709
process . on ( 'exit' , ( ) => {
711
710
for ( const spec of this . inProgress ) {
711
+ // No need to record this synthetic failure with wpt.fyi.
712
712
this . fail ( spec , { name : 'Incomplete' } , kIncomplete ) ;
713
713
// Mark the whole test as failed in wpt.fyi report.
714
714
const reportResult = this . report ?. getResult ( spec ) ;
@@ -834,7 +834,9 @@ class WPTRunner {
834
834
835
835
// Treat it like a test case failure
836
836
if ( status === kTimeout ) {
837
- this . fail ( spec , { name : 'WPT testharness timeout' } , kTimeout , reportResult ) ;
837
+ // No need to record this synthetic failure with wpt.fyi.
838
+ this . fail ( spec , { name : 'WPT testharness timeout' } , kTimeout ) ;
839
+ // Mark the whole test as TIMEOUT in wpt.fyi report.
838
840
reportResult ?. finish ( 'TIMEOUT' ) ;
839
841
} else {
840
842
reportResult ?. finish ( ) ;
0 commit comments