mirror of
https://github.com/nodejs/node.git
synced 2026-10-28 10:15:07 +08:00
test: extend env for test-node-output-errors
Extend, rather than replace, `env` for `test-node-output-errors` so that `node` binaries that need `LD_LIBRARY_PATH`, `LIBPATH` or `DYLD_LIBRARY_PATH` can run. PR-URL: https://github.com/nodejs/node/pull/53535 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
This commit is contained in:
1 parent
92a25abca9
commit
cd8e61fe26
1 file changed
+1
-3
@@ -6,8 +6,6 @@ import { describe, it } from 'node:test';
|
||||
import { pathToFileURL } from 'node:url';
|
||||
|
||||
const skipForceColors =
|
||||
process.config.variables.icu_gyp_path !== 'tools/icu/icu-generic.gyp' ||
|
||||
process.config.variables.node_shared_openssl ||
|
||||
(common.isWindows && (Number(os.release().split('.')[0]) !== 10 || Number(os.release().split('.')[2]) < 14393)); // See https://github.com/nodejs/node/pull/33132
|
||||
|
||||
|
||||
@@ -76,7 +74,7 @@ describe('errors output', { concurrency: !process.env.TEST_PARALLEL }, () => {
|
||||
];
|
||||
for (const { name, transform = defaultTransform, env, skip = false } of tests) {
|
||||
it(name, { skip }, async () => {
|
||||
await snapshot.spawnAndAssert(fixtures.path(name), transform, { env });
|
||||
await snapshot.spawnAndAssert(fixtures.path(name), transform, { env: { ...env, ...process.env } });
|
||||
});
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user