Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nodejs/node
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: ceca668658c5b24736d7d653ffa24ebc5ed740e1
Choose a base ref
..
head repository: nodejs/node
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: a2f399b73f0f15462a62422d17873b07bce27035
Choose a head ref
Showing with 4 additions and 2 deletions.
  1. +4 βˆ’2 test/parallel/test-cli-permission-deny-fs.js
6 changes: 4 additions & 2 deletions test/parallel/test-cli-permission-deny-fs.js
Original file line number Diff line number Diff line change
@@ -131,7 +131,9 @@ const path = require('path');
}

{
const firstPath = path.sep + process.cwd().split(path.sep, 2)[1];
const { root } = path.parse(process.cwd());
const abs = (p) => path.join(root, p);
const firstPath = abs(path.sep + process.cwd().split(path.sep, 2)[1]);
if (firstPath.startsWith('/etc')) {
common.skip('/etc as firstPath');
}
@@ -144,6 +146,6 @@ const path = require('path');
file,
]
);
assert.match(stderr.toString(), /resource:\s+'\/etc\/passwd'/);
assert.match(stderr.toString(), /resource: '.*?[\\/](?:etc|passwd)'/);
assert.strictEqual(status, 1);
}