Update baseline-accept configuration

This commit is contained in:
Mohamed Hegazy 2016-11-21 17:25:31 -08:00
parent 77c0540433
commit 9009da225c

View file

@ -1086,12 +1086,10 @@ task("tests-debug", ["setDebugMode", "tests"]);
// Makes the test results the new baseline // Makes the test results the new baseline
desc("Makes the most recent test results the new baseline, overwriting the old baseline"); desc("Makes the most recent test results the new baseline, overwriting the old baseline");
task("baseline-accept", function () { task("baseline-accept", function () {
acceptBaseline(""); acceptBaseline(localBaseline, refBaseline);
}); });
function acceptBaseline(containerFolder) { function acceptBaseline(sourceFolder, targetFolder) {
var sourceFolder = path.join(localBaseline, containerFolder);
var targetFolder = path.join(refBaseline, containerFolder);
console.log('Accept baselines from ' + sourceFolder + ' to ' + targetFolder); console.log('Accept baselines from ' + sourceFolder + ' to ' + targetFolder);
var files = fs.readdirSync(sourceFolder); var files = fs.readdirSync(sourceFolder);
var deleteEnding = '.delete'; var deleteEnding = '.delete';
@ -1115,12 +1113,12 @@ function acceptBaseline(containerFolder) {
desc("Makes the most recent rwc test results the new baseline, overwriting the old baseline"); desc("Makes the most recent rwc test results the new baseline, overwriting the old baseline");
task("baseline-accept-rwc", function () { task("baseline-accept-rwc", function () {
acceptBaseline("rwc"); acceptBaseline(localRwcBaseline, refRwcBaseline);
}); });
desc("Makes the most recent test262 test results the new baseline, overwriting the old baseline"); desc("Makes the most recent test262 test results the new baseline, overwriting the old baseline");
task("baseline-accept-test262", function () { task("baseline-accept-test262", function () {
acceptBaseline("test262"); acceptBaseline(localTest262Baseline, refTest262Baseline);
}); });