From 52bae222a3a8480b2b30d8dc4629b64a284410d4 Mon Sep 17 00:00:00 2001 From: Jeremiah Senkpiel Date: Wed, 11 May 2016 15:34:52 -0400 Subject: test: abstract skip functionality to common The tap skipping output is so prevalent yet obscure in nature that we ought to move it into it's own function in test/common.js PR-URL: https://github.com/nodejs/node/pull/6697 Reviewed-By: Rich Trott Reviewed-By: Santiago Gimeno Reviewed-By: Fedor Indutny --- test/parallel/test-tls-ocsp-callback.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/parallel/test-tls-ocsp-callback.js') diff --git a/test/parallel/test-tls-ocsp-callback.js b/test/parallel/test-tls-ocsp-callback.js index 27afb3431a..190c716694 100644 --- a/test/parallel/test-tls-ocsp-callback.js +++ b/test/parallel/test-tls-ocsp-callback.js @@ -2,17 +2,17 @@ var common = require('../common'); if (!process.features.tls_ocsp) { - console.log('1..0 # Skipped: node compiled without OpenSSL or ' + + common.skip('node compiled without OpenSSL or ' + 'with old OpenSSL version.'); return; } if (!common.opensslCli) { - console.log('1..0 # Skipped: node compiled without OpenSSL CLI.'); + common.skip('node compiled without OpenSSL CLI.'); return; } if (!common.hasCrypto) { - console.log('1..0 # Skipped: missing crypto'); + common.skip('missing crypto'); return; } var tls = require('tls'); -- cgit v1.2.1