@@ -531,8 +531,6 @@ const localRwcBaseline = path.join(internalTests, "baselines/rwc/local");
531
531
const refRwcBaseline = path . join ( internalTests , "baselines/rwc/reference" ) ;
532
532
533
533
const localTest262Baseline = path . join ( internalTests , "baselines/test262/local" ) ;
534
- const refTest262Baseline = path . join ( internalTests , "baselines/test262/reference" ) ;
535
-
536
534
537
535
gulp . task ( "tests" , "Builds the test infrastructure using the built compiler" , [ run ] ) ;
538
536
gulp . task ( "tests-debug" , "Builds the test sources and automation in debug mode" , ( ) => {
@@ -811,8 +809,6 @@ gulp.task("diff-rwc", "Diffs the RWC baselines using the diff tool specified by
811
809
exec ( getDiffTool ( ) , [ refRwcBaseline , localRwcBaseline ] , done , done ) ;
812
810
} ) ;
813
811
814
-
815
- const deleteEnding = '.delete' ;
816
812
gulp . task ( "baseline-accept" , "Makes the most recent test results the new baseline, overwriting the old baseline" , ( ) => {
817
813
return baselineAccept ( "" ) ;
818
814
} ) ;
@@ -827,13 +823,12 @@ function baselineCopy(subfolder = "") {
827
823
}
828
824
829
825
function baselineDelete ( subfolder = "" ) {
830
- return gulp . src ( [ ' tests/baselines/local/**/*.delete' ] )
826
+ return gulp . src ( [ " tests/baselines/local/**/*.delete" ] )
831
827
. pipe ( insert . transform ( ( content , fileObj ) => {
832
- const target = path . join ( refBaseline , fileObj . relative . substr ( 0 , fileObj . relative . length - '.delete' . length ) ) ;
833
- console . log ( target ) ;
828
+ const target = path . join ( refBaseline , fileObj . relative . substr ( 0 , fileObj . relative . length - ".delete" . length ) ) ;
834
829
del . sync ( target ) ;
835
830
del . sync ( fileObj . path ) ;
836
- return '' ;
831
+ return "" ;
837
832
} ) ) ;
838
833
}
839
834
0 commit comments