freeze patches object for test

This commit is contained in:
Igor Klopov 2016-09-04 18:30:37 +03:00
parent d266fb9509
commit ea43d7633d
2 changed files with 37 additions and 0 deletions

26
test/patches.json Normal file
View File

@ -0,0 +1,26 @@
{
"v0.12.15": [
"backport.R00000.patch",
"backport.R24002.patch",
"backport.R24204.patch",
"backport.R24262.patch",
"backport.R24266.patch",
"backport.R24523.patch",
"backport.R24543.patch",
"backport.R24639.patch",
"backport.R24642.patch",
"backport.R24643.patch",
"backport.R24644.patch",
"backport.R24824.patch",
"backport.R25039.patch",
"backport.R25444.patch",
"node.v0.12.15.patch"
],
"v4.4.7": [
"backport.R32768.v8=4.5.patch",
"node.v4.4.7.patch"
],
"v6.3.1": [
"node.v6.3.1.patch"
]
}

View File

@ -19,6 +19,17 @@ const assets = [];
require('../package.json').version = '1337.2.3';
const patchesJson = require('../patches/patches.json');
const newPatchesJson = require('./patches.json');
for (const nodeVersion in patchesJson) {
delete patchesJson[nodeVersion];
}
for (const nodeVersion in newPatchesJson) {
patchesJson[nodeVersion] = newPatchesJson[nodeVersion];
}
require('../lib/log.js').log = new LogMock(actions);
require('../lib/temp-path.js').tempPath = function () {