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

Re-do of 52bae222a3 for v4.x

Ref: https://github.com/nodejs/node/pull/6697
PR-URL: https://github.com/nodejs/node/pull/7114
Reviewed-By: Myles Borins <myles.borins@gmail.com>
This commit is contained in:
Jeremiah Senkpiel authored and Myles Borins committed 2016-06-23 17:25:10 -07:00
1 parent eadb7e5b20
commit 4067cde7ee
219 files changed
+291 -294

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@ var common = require('../common');
var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
common.skip('missing crypto');
return;
}
var https = require('https');