Skip to content

Commit 427cd29

Browse files
committed
test: add hasCrypto check to test-cli-node-options
Currently when configure --without-ssl the test will throw the following error: bad option: --use-openssl-ca This commit checks if crypto was enabled and skips the crypto related tests if that is the case. PR-URL: #12692 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Sam Roberts <[email protected]>/
1 parent a1a54ca commit 427cd29

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/parallel/test-cli-node-options.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,11 @@ expect('--track-heap-objects', 'B\n');
5353
expect('--throw-deprecation', 'B\n');
5454
expect('--zero-fill-buffers', 'B\n');
5555
expect('--v8-pool-size=10', 'B\n');
56-
expect('--use-openssl-ca', 'B\n');
57-
expect('--use-bundled-ca', 'B\n');
58-
expect('--openssl-config=_ossl_cfg', 'B\n');
56+
if (common.hasCrypto) {
57+
expect('--use-openssl-ca', 'B\n');
58+
expect('--use-bundled-ca', 'B\n');
59+
expect('--openssl-config=_ossl_cfg', 'B\n');
60+
}
5961
expect('--icu-data-dir=_d', 'B\n');
6062

6163
// V8 options

0 commit comments

Comments
 (0)