Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1df7961

Browse filesBrowse files
codebytereMylesBorins
authored andcommitted
test: allow disabling crypto tests
PR-URL: #31268 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
1 parent 79eba6a commit 1df7961
Copy full SHA for 1df7961

File tree

Expand file treeCollapse file tree

2 files changed

+6
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+6
-1
lines changed
Open diff view settings
Collapse file

‎test/common/README.md‎

Copy file name to clipboardExpand all lines: test/common/README.md
+4Lines changed: 4 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,10 @@ If set, `NODE_COMMON_PORT`'s value overrides the `common.PORT` default value of
570570

571571
If set, command line arguments passed to individual tests are not validated.
572572

573+
### `NODE_SKIP_CRYPTO`
574+
575+
If set, crypto tests are skipped.
576+
573577
### `NODE_TEST_KNOWN_GLOBALS`
574578

575579
A comma-separated list of variables names that are appended to the global
Collapse file

‎test/common/index.js‎

Copy file name to clipboardExpand all lines: test/common/index.js
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ if (isMainThread)
4848

4949
const noop = () => {};
5050

51-
const hasCrypto = Boolean(process.versions.openssl);
51+
const hasCrypto = Boolean(process.versions.openssl) &&
52+
!process.env.NODE_SKIP_CRYPTO;
5253

5354
// Check for flags. Skip this for workers (both, the `cluster` module and
5455
// `worker_threads`) and child processes.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.