test: check --test is disallowed in NODE_OPTIONS

PR-URL: https://github.com/nodejs/node/pull/44846
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com>
Reviewed-By: Tierney Cyren <hello@bnb.im>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com>
This commit is contained in:
Kohei Ueno 2022-10-07 23:11:18 +09:00 committed by GitHub
parent c50987ed58
commit 2c57b94920
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,6 +28,7 @@ disallow('--v8-options');
disallow('--expose_internals');
disallow('--expose-internals');
disallow('--');
disallow('--test');
function disallow(opt) {
const env = { ...process.env, NODE_OPTIONS: opt };