test: remove fixturesDir from common module
Remove common.fixturesDir. All tests now use the the common/fixtures module instead. PR-URL: https://github.com/nodejs/node/pull/17400 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Lance Ball <lball@redhat.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
This commit is contained in:
parent
f9660b7166
commit
f299922068
@ -127,11 +127,6 @@ Returns a new promise that will propagate `promise` resolution or rejection if
|
||||
that happens within the `timeoutMs` timespan, or rejects with `error` as
|
||||
a reason otherwise.
|
||||
|
||||
### fixturesDir
|
||||
* [<String>]
|
||||
|
||||
Path to the 'fixtures' directory.
|
||||
|
||||
### getArrayBufferViews(buf)
|
||||
* `buf` [<Buffer>]
|
||||
* return [<ArrayBufferView[]>]
|
||||
|
@ -36,8 +36,6 @@ const testRoot = process.env.NODE_TEST_DIR ?
|
||||
|
||||
const noop = () => {};
|
||||
|
||||
exports.fixturesDir = fixturesDir;
|
||||
|
||||
// Using a `.` prefixed name, which is the convention for "hidden" on POSIX,
|
||||
// gets tools to ignore it by default or by simple rules, especially eslint.
|
||||
let tmpDirName = '.tmp';
|
||||
@ -303,7 +301,7 @@ exports.childShouldThrowAndAbort = function() {
|
||||
|
||||
exports.ddCommand = function(filename, kilobytes) {
|
||||
if (exports.isWindows) {
|
||||
const p = path.resolve(exports.fixturesDir, 'create-file.js');
|
||||
const p = path.resolve(fixturesDir, 'create-file.js');
|
||||
return `"${process.argv[0]}" "${p}" "${filename}" ${kilobytes * 1024}`;
|
||||
} else {
|
||||
return `dd if=/dev/zero of="${filename}" bs=1024 count=${kilobytes}`;
|
||||
|
Loading…
x
Reference in New Issue
Block a user