tools, test: update test-npm-package paths
Makes the same changes as
994617370e
to update the test runner for npm5.
PR-URL: https://github.com/nodejs/node/pull/13441
Refs: https://github.com/nodejs/node/pull/12936
Reviewed-By: Jan Krems <jan.krems@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
This commit is contained in:
parent
cc8fc462f1
commit
6bcea5c536
@ -24,7 +24,7 @@ const path = require('path');
|
|||||||
const common = require('../test/common');
|
const common = require('../test/common');
|
||||||
|
|
||||||
const projectDir = path.resolve(__dirname, '..');
|
const projectDir = path.resolve(__dirname, '..');
|
||||||
const npmBin = path.join(projectDir, 'deps', 'npm', 'cli.js');
|
const npmBin = path.join(projectDir, 'deps', 'npm', 'bin', 'npm-cli.js');
|
||||||
const nodePath = path.dirname(process.execPath);
|
const nodePath = path.dirname(process.execPath);
|
||||||
|
|
||||||
function spawnCopyDeepSync(source, destination) {
|
function spawnCopyDeepSync(source, destination) {
|
||||||
@ -82,6 +82,7 @@ function runNPMPackageTests({ srcDir, install, rebuild, testArgs, logfile }) {
|
|||||||
npmBin,
|
npmBin,
|
||||||
'install',
|
'install',
|
||||||
'--ignore-scripts',
|
'--ignore-scripts',
|
||||||
|
'--no-save',
|
||||||
], npmOptions);
|
], npmOptions);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user