@@ -51,6 +51,7 @@ const hasCrypto = Boolean(process.versions.openssl); |
|
|
51 |
51 |
// If the binary was built without-ssl then the crypto flags are |
52 |
52 |
// invalid (bad option). The test itself should handle this case. |
53 |
53 |
if (process.argv.length === 2 && |
|
54 |
+!process.env.NODE_SKIP_FLAG_CHECK && |
54 |
55 |
isMainThread && |
55 |
56 |
hasCrypto && |
56 |
57 |
module.parent && |
@@ -82,7 +83,8 @@ if (process.argv.length === 2 && |
|
|
82 |
83 |
(process.features.inspector | |
83 |
84 |
console.log( |
84 |
85 |
'NOTE: The test started as a child_process using these flags:', |
85 |
|
-util.inspect(flags) |
|
86 |
+util.inspect(flags), |
|
87 |
+'Use NODE_SKIP_FLAG_CHECK to run the test with the original flags.' |
86 |
88 |
); |
87 |
89 |
const args = [...flags, ...process.execArgv, ...process.argv.slice(1)]; |
88 |
90 |
const options = { encoding: 'utf8', stdio: 'inherit' }; |