GeezerVison is showing github.com — test: allow disabling crypto tests · nodejs/node@1df7961
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
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 number | Diff line number | Diff line change |
|---|
@@ -570,6 +570,10 @@ If set, `NODE_COMMON_PORT`'s value overrides the `common.PORT` default value of |
570 | 570 |
|
571 | 571 | If set, command line arguments passed to individual tests are not validated. |
572 | 572 |
|
| 573 | +### `NODE_SKIP_CRYPTO` |
| 574 | + |
| 575 | +If set, crypto tests are skipped. |
| 576 | + |
573 | 577 | ### `NODE_TEST_KNOWN_GLOBALS` |
574 | 578 |
|
575 | 579 | A comma-separated list of variables names that are appended to the global |
|
Collapse file
Copy file name to clipboardExpand all lines: test/common/index.js +2-1Lines changed: 2 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -48,7 +48,8 @@ if (isMainThread) |
48 | 48 |
|
49 | 49 | const noop = () => {}; |
50 | 50 |
|
51 | | -const hasCrypto = Boolean(process.versions.openssl); |
| 51 | +const hasCrypto = Boolean(process.versions.openssl) && |
| 52 | + !process.env.NODE_SKIP_CRYPTO; |
52 | 53 |
|
53 | 54 | // Check for flags. Skip this for workers (both, the `cluster` module and |
54 | 55 | // `worker_threads`) and child processes. |
|