diff --git a/test/common/index.js b/test/common/index.js index 8c61fdc5cfcda1..3167791f8a4a25 100644 --- a/test/common/index.js +++ b/test/common/index.js @@ -51,6 +51,7 @@ const hasCrypto = Boolean(process.versions.openssl); // If the binary was built without-ssl then the crypto flags are // invalid (bad option). The test itself should handle this case. if (process.argv.length === 2 && + !process.env.NODE_SKIP_FLAG_CHECK && isMainThread && hasCrypto && module.parent && @@ -82,7 +83,8 @@ if (process.argv.length === 2 && (process.features.inspector || !flag.startsWith('--inspect'))) { console.log( 'NOTE: The test started as a child_process using these flags:', - util.inspect(flags) + util.inspect(flags), + 'Use NODE_SKIP_FLAG_CHECK to run the test with the original flags.' ); const args = [...flags, ...process.execArgv, ...process.argv.slice(1)]; const options = { encoding: 'utf8', stdio: 'inherit' };