Permalink
Browse files

test: skip when openssl CLI doesn't exist

PR-URL: #11095
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
  • Loading branch information...
sotayamashita authored and italoacasas committed Feb 1, 2017
1 parent 6f866ae commit 1085a4675aeec9c5f3497911456ef3b8990e8f61
@@ -6,6 +6,12 @@ if (!common.hasCrypto) {
common.skip('missing crypto');
return;
}
+
+if (!common.opensslCli) {
+ common.skip('missing openssl-cli');
+ return;
+}
+
const tls = require('tls');
const spawn = require('child_process').spawn;
@@ -6,6 +6,12 @@ if (!common.hasCrypto) {
common.skip('missing crypto');
return;
}
+
+if (!common.opensslCli) {
+ common.skip('missing openssl-cli');
+ return;
+}
+
const tls = require('tls');
const exec = require('child_process').exec;
@@ -5,6 +5,12 @@ if (!common.hasCrypto) {
common.skip('missing crypto');
return;
}
+
+if (!common.opensslCli) {
+ common.skip('missing openssl-cli');
+ return;
+}
+
const assert = require('assert');
const tls = require('tls');
@@ -6,6 +6,12 @@ if (!common.hasCrypto) {
common.skip('missing crypto');
return;
}
+
+if (!common.opensslCli) {
+ common.skip('missing openssl-cli');
+ return;
+}
+
const tls = require('tls');
const join = require('path').join;

0 comments on commit 1085a46

Please sign in to comment.