From 69298d36cfe1d5ad2ade0e64586959cc18c7ea4e Mon Sep 17 00:00:00 2001 From: Sakthipriyan Vairamani Date: Mon, 6 Jul 2015 03:24:12 +0000 Subject: [PATCH] test: formatting skip messages for TAP parsing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch makes the skip messages consistent so that the TAP plugin in CI can parse the messages properly. The format will be 1..0 # Skipped: [Actual reason why the test is skipped] PR-URL: https://github.com/nodejs/io.js/pull/2109 Reviewed-By: Ben Noordhuis Reviewed-By: Johan Bergström --- .../test-cluster-bind-privileged-port.js | 2 +- .../test-cluster-disconnect-unshared-udp.js | 2 +- ...cluster-shared-handle-bind-privileged-port.js | 4 ++-- test/parallel/test-crypto-authenticated.js | 2 +- test/parallel/test-dgram-bind-default-address.js | 2 +- test/parallel/test-dgram-empty-packet.js | 2 +- test/parallel/test-dgram-send-empty-buffer.js | 2 +- test/parallel/test-fs-readfile-error.js | 2 +- test/parallel/test-fs-readfile-pipe-large.js | 2 +- test/parallel/test-fs-readfile-pipe.js | 2 +- test/parallel/test-fs-readfilesync-pipe-large.js | 2 +- test/parallel/test-fs-realpath.js | 16 ++++++++-------- test/parallel/test-http-curl-chunk-problem.js | 2 +- test/parallel/test-http-full-response.js | 2 +- test/parallel/test-http-localaddress.js | 2 +- test/parallel/test-https-foafssl.js | 2 +- test/parallel/test-https-localaddress.js | 2 +- test/parallel/test-intl.js | 6 +++--- test/parallel/test-listen-fd-cluster.js | 2 +- test/parallel/test-listen-fd-detached-inherit.js | 2 +- test/parallel/test-listen-fd-detached.js | 2 +- test/parallel/test-listen-fd-server.js | 2 +- test/parallel/test-module-loading-error.js | 2 +- test/parallel/test-net-connect-options-ipv6.js | 2 +- test/parallel/test-process-getgroups.js | 2 +- test/parallel/test-stdio-closed.js | 2 +- test/parallel/test-tls-alert-handling.js | 2 +- test/parallel/test-tls-alert.js | 2 +- test/parallel/test-tls-no-sslv3.js | 2 +- test/parallel/test-tls-npn-server-client.js | 4 ++-- test/parallel/test-tls-ocsp-callback.js | 6 +++--- test/parallel/test-tls-server-verify.js | 2 +- test/parallel/test-tls-session-cache.js | 2 +- test/parallel/test-tls-set-ciphers.js | 2 +- test/parallel/test-tls-sni-option.js | 4 ++-- test/parallel/test-tls-sni-server-client.js | 4 ++-- test/parallel/test-tty-wrap.js | 2 +- test/pummel/test-abort-fatal-error.js | 2 +- test/pummel/test-dtrace-jsstack.js | 2 +- test/pummel/test-https-ci-reneg-attack.js | 2 +- test/pummel/test-keep-alive.js | 2 +- test/pummel/test-tls-ci-reneg-attack.js | 2 +- test/pummel/test-tls-securepair-client.js | 2 +- test/pummel/test-tls-session-timeout.js | 2 +- test/sequential/test-child-process-emfile.js | 2 +- test/sequential/test-net-server-address.js | 2 +- test/sequential/test-setproctitle.js | 2 +- 47 files changed, 62 insertions(+), 62 deletions(-) diff --git a/test/parallel/test-cluster-bind-privileged-port.js b/test/parallel/test-cluster-bind-privileged-port.js index b51367aa4229a3..f08accc73a89c4 100644 --- a/test/parallel/test-cluster-bind-privileged-port.js +++ b/test/parallel/test-cluster-bind-privileged-port.js @@ -5,7 +5,7 @@ var cluster = require('cluster'); var net = require('net'); if (process.platform === 'win32') { - console.log('Skipping test, not reliable on Windows.'); + console.log('1..0 # Skipped: not reliable on Windows.'); process.exit(0); } diff --git a/test/parallel/test-cluster-disconnect-unshared-udp.js b/test/parallel/test-cluster-disconnect-unshared-udp.js index f90152cf68f1a7..5b84e4c83d4a44 100644 --- a/test/parallel/test-cluster-disconnect-unshared-udp.js +++ b/test/parallel/test-cluster-disconnect-unshared-udp.js @@ -1,6 +1,6 @@ 'use strict'; if (process.platform === 'win32') { - console.log('skipping test on windows, where clustered dgram is ENOTSUP'); + console.log('1..0 # Skipped: on windows, because clustered dgram is ENOTSUP'); process.exit(0); } diff --git a/test/parallel/test-cluster-shared-handle-bind-privileged-port.js b/test/parallel/test-cluster-shared-handle-bind-privileged-port.js index 4fc4b078ad6409..82417c25b9b4f9 100644 --- a/test/parallel/test-cluster-shared-handle-bind-privileged-port.js +++ b/test/parallel/test-cluster-shared-handle-bind-privileged-port.js @@ -5,12 +5,12 @@ var cluster = require('cluster'); var net = require('net'); if (process.platform === 'win32') { - console.log('Skipping test, not reliable on Windows.'); + console.log('1..0 # Skipped: not reliable on Windows'); process.exit(0); } if (process.getuid() === 0) { - console.log('Do not run this test as root.'); + console.log('1..0 # Skipped: as this test should not be run as `root`'); process.exit(0); } diff --git a/test/parallel/test-crypto-authenticated.js b/test/parallel/test-crypto-authenticated.js index 75d733ff98b9b1..9e3ea8ccf132c0 100644 --- a/test/parallel/test-crypto-authenticated.js +++ b/test/parallel/test-crypto-authenticated.js @@ -56,7 +56,7 @@ for (var i in TEST_CASES) { var test = TEST_CASES[i]; if (ciphers.indexOf(test.algo) == -1) { - console.log('skipping unsupported ' + test.algo + ' test'); + console.log('1..0 # Skipped: unsupported ' + test.algo + ' test'); continue; } diff --git a/test/parallel/test-dgram-bind-default-address.js b/test/parallel/test-dgram-bind-default-address.js index 03e8afb99132aa..ad42f43829d131 100644 --- a/test/parallel/test-dgram-bind-default-address.js +++ b/test/parallel/test-dgram-bind-default-address.js @@ -16,7 +16,7 @@ dgram.createSocket('udp4').bind(common.PORT + 0, common.mustCall(function() { })); if (!common.hasIPv6) { - console.error('Skipping udp6 part of test, no IPv6 support'); + console.log('1..0 # Skipped: udp6 part of test, because no IPv6 support'); return; } diff --git a/test/parallel/test-dgram-empty-packet.js b/test/parallel/test-dgram-empty-packet.js index 797012b8839fb7..ba6faa62d86cec 100644 --- a/test/parallel/test-dgram-empty-packet.js +++ b/test/parallel/test-dgram-empty-packet.js @@ -9,7 +9,7 @@ var client; var timer; if (process.platform === 'darwin') { - console.error('Test is disabled due to 17894467 Apple bug'); + console.log('1..0 # Skipped: because of 17894467 Apple bug'); return; } diff --git a/test/parallel/test-dgram-send-empty-buffer.js b/test/parallel/test-dgram-send-empty-buffer.js index ab66e0545e611d..11f3d38d2ed046 100644 --- a/test/parallel/test-dgram-send-empty-buffer.js +++ b/test/parallel/test-dgram-send-empty-buffer.js @@ -8,7 +8,7 @@ var callbacks = 0; var client, timer, buf; if (process.platform === 'darwin') { - console.error('Test is disabled due to 17894467 Apple bug'); + console.log('1..0 # Skipped: because of 17894467 Apple bug'); return; } diff --git a/test/parallel/test-fs-readfile-error.js b/test/parallel/test-fs-readfile-error.js index 6d86ba1a7ec0f1..f782aa585fdede 100644 --- a/test/parallel/test-fs-readfile-error.js +++ b/test/parallel/test-fs-readfile-error.js @@ -7,7 +7,7 @@ var path = require('path'); // `fs.readFile('/')` does not fail on FreeBSD, because you can open and read // the directory there. if (process.platform === 'freebsd') { - console.error('Skipping test, platform not supported.'); + console.log('1..0 # Skipped: platform not supported.'); process.exit(); } diff --git a/test/parallel/test-fs-readfile-pipe-large.js b/test/parallel/test-fs-readfile-pipe-large.js index 690da928e72535..a229d8fba7aa1c 100644 --- a/test/parallel/test-fs-readfile-pipe-large.js +++ b/test/parallel/test-fs-readfile-pipe-large.js @@ -6,7 +6,7 @@ var path = require('path'); // simulate `cat readfile.js | node readfile.js` if (process.platform === 'win32') { - console.error('No /dev/stdin on windows. Skipping test.'); + console.log('1..0 # Skipped: No /dev/stdin on windows.'); process.exit(); } diff --git a/test/parallel/test-fs-readfile-pipe.js b/test/parallel/test-fs-readfile-pipe.js index 80cbaeac7cc43b..2874b0ec04a8a1 100644 --- a/test/parallel/test-fs-readfile-pipe.js +++ b/test/parallel/test-fs-readfile-pipe.js @@ -5,7 +5,7 @@ var assert = require('assert'); // simulate `cat readfile.js | node readfile.js` if (process.platform === 'win32') { - console.error('No /dev/stdin on windows. Skipping test.'); + console.log('1..0 # Skipped: No /dev/stdin on windows.'); process.exit(); } diff --git a/test/parallel/test-fs-readfilesync-pipe-large.js b/test/parallel/test-fs-readfilesync-pipe-large.js index 991c8589dedcfb..d8a346e756ef53 100644 --- a/test/parallel/test-fs-readfilesync-pipe-large.js +++ b/test/parallel/test-fs-readfilesync-pipe-large.js @@ -6,7 +6,7 @@ var path = require('path'); // simulate `cat readfile.js | node readfile.js` if (process.platform === 'win32') { - console.error('No /dev/stdin on windows. Skipping test.'); + console.log('1..0 # Skipped: No /dev/stdin on windows.'); process.exit(); } diff --git a/test/parallel/test-fs-realpath.js b/test/parallel/test-fs-realpath.js index 718ec2f7aac3d9..a87ef2428dc479 100644 --- a/test/parallel/test-fs-realpath.js +++ b/test/parallel/test-fs-realpath.js @@ -80,7 +80,7 @@ function test_simple_error_callback(cb) { function test_simple_relative_symlink(callback) { console.log('test_simple_relative_symlink'); if (skipSymlinks) { - console.log('skipping symlink test (no privs)'); + console.log('1..0 # Skipped: symlink test (no privs)'); return runNextTest(); } var entry = common.tmpDir + '/symlink', @@ -143,7 +143,7 @@ function test_simple_absolute_symlink(callback) { function test_deep_relative_file_symlink(callback) { console.log('test_deep_relative_file_symlink'); if (skipSymlinks) { - console.log('skipping symlink test (no privs)'); + console.log('1..0 # Skipped: symlink test (no privs)'); return runNextTest(); } @@ -175,7 +175,7 @@ function test_deep_relative_file_symlink(callback) { function test_deep_relative_dir_symlink(callback) { console.log('test_deep_relative_dir_symlink'); if (skipSymlinks) { - console.log('skipping symlink test (no privs)'); + console.log('1..0 # Skipped: symlink test (no privs)'); return runNextTest(); } var expected = path.join(common.fixturesDir, 'cycles', 'folder'); @@ -207,7 +207,7 @@ function test_deep_relative_dir_symlink(callback) { function test_cyclic_link_protection(callback) { console.log('test_cyclic_link_protection'); if (skipSymlinks) { - console.log('skipping symlink test (no privs)'); + console.log('1..0 # Skipped: symlink test (no privs)'); return runNextTest(); } var entry = common.tmpDir + '/cycles/realpath-3a'; @@ -230,7 +230,7 @@ function test_cyclic_link_protection(callback) { function test_cyclic_link_overprotection(callback) { console.log('test_cyclic_link_overprotection'); if (skipSymlinks) { - console.log('skipping symlink test (no privs)'); + console.log('1..0 # Skipped: symlink test (no privs)'); return runNextTest(); } var cycles = common.tmpDir + '/cycles'; @@ -251,7 +251,7 @@ function test_cyclic_link_overprotection(callback) { function test_relative_input_cwd(callback) { console.log('test_relative_input_cwd'); if (skipSymlinks) { - console.log('skipping symlink test (no privs)'); + console.log('1..0 # Skipped: symlink test (no privs)'); return runNextTest(); } @@ -295,7 +295,7 @@ function test_deep_symlink_mix(callback) { if (isWindows) { // This one is a mix of files and directories, and it's quite tricky // to get the file/dir links sorted out correctly. - console.log('skipping symlink test (no way to work on windows)'); + console.log('1..0 # Skipped: symlink test (no privs)'); return runNextTest(); } @@ -391,7 +391,7 @@ assert.equal(upone, uponeActual, function test_up_multiple(cb) { console.error('test_up_multiple'); if (skipSymlinks) { - console.log('skipping symlink test (no privs)'); + console.log('1..0 # Skipped: symlink test (no privs)'); return runNextTest(); } function cleanup() { diff --git a/test/parallel/test-http-curl-chunk-problem.js b/test/parallel/test-http-curl-chunk-problem.js index 24f85e875afdfa..0e952f1d7e6f73 100644 --- a/test/parallel/test-http-curl-chunk-problem.js +++ b/test/parallel/test-http-curl-chunk-problem.js @@ -2,7 +2,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.opensslCli) { - console.error('Skipping because node compiled without OpenSSL CLI.'); + console.log('1..0 # Skipped: node compiled without OpenSSL CLI.'); process.exit(0); } diff --git a/test/parallel/test-http-full-response.js b/test/parallel/test-http-full-response.js index da1b6d7f223496..17240c9addb895 100644 --- a/test/parallel/test-http-full-response.js +++ b/test/parallel/test-http-full-response.js @@ -27,7 +27,7 @@ function runAb(opts, callback) { exec(command, function(err, stdout, stderr) { if (err) { if (/ab|apr/mi.test(stderr)) { - console.log('problem spawning ab - skipping test.\n' + stderr); + console.log('1..0 # Skipped: problem spawning `ab`.\n' + stderr); process.reallyExit(0); } process.exit(); diff --git a/test/parallel/test-http-localaddress.js b/test/parallel/test-http-localaddress.js index 9cc6a80d0b4974..5d95a998f6e7a7 100644 --- a/test/parallel/test-http-localaddress.js +++ b/test/parallel/test-http-localaddress.js @@ -4,7 +4,7 @@ var http = require('http'), assert = require('assert'); if (!common.hasMultiLocalhost()) { - console.log('Skipping platform-specific test.'); + console.log('1..0 # Skipped: platform-specific test.'); process.exit(); } diff --git a/test/parallel/test-https-foafssl.js b/test/parallel/test-https-foafssl.js index f9b382ad830d35..5ada00c92453f0 100644 --- a/test/parallel/test-https-foafssl.js +++ b/test/parallel/test-https-foafssl.js @@ -2,7 +2,7 @@ var common = require('../common'); if (!common.opensslCli) { - console.error('Skipping because node compiled without OpenSSL CLI.'); + console.log('1..0 # Skipped: node compiled without OpenSSL CLI.'); process.exit(0); } diff --git a/test/parallel/test-https-localaddress.js b/test/parallel/test-https-localaddress.js index 0f3241c70b46ec..94a301f8b0ba7c 100644 --- a/test/parallel/test-https-localaddress.js +++ b/test/parallel/test-https-localaddress.js @@ -10,7 +10,7 @@ if (!common.hasCrypto) { var https = require('https'); if (!common.hasMultiLocalhost()) { - console.log('Skipping platform-specific test.'); + console.log('1..0 # Skipped: platform-specific test.'); process.exit(); } diff --git a/test/parallel/test-intl.js b/test/parallel/test-intl.js index 8701d90f7c0acc..7288febf9e6bfd 100644 --- a/test/parallel/test-intl.js +++ b/test/parallel/test-intl.js @@ -24,7 +24,7 @@ if (!haveIntl) { '"Intl" object is NOT present but v8_enable_i18n_support is ' + enablei18n; assert.equal(enablei18n, false, erMsg); - console.log('Skipping Intl tests because Intl object not present.'); + console.log('1..0 # Skipped: Intl tests because Intl object not present.'); } else { var erMsg = @@ -46,8 +46,8 @@ if (!haveIntl) { // If list is specified and doesn't contain 'en' then return. if (process.config.variables.icu_locales && !haveLocale('en')) { - console.log('Skipping detailed Intl tests because English is not listed ' + - 'as supported.'); + console.log('1..0 # Skipped: detailed Intl tests because English is not ' + + 'listed as supported.'); // Smoke test. Does it format anything, or fail? console.log('Date(0) formatted to: ' + dtf.format(date0)); return; diff --git a/test/parallel/test-listen-fd-cluster.js b/test/parallel/test-listen-fd-cluster.js index c3ba42f315daba..b10edd33e0064a 100644 --- a/test/parallel/test-listen-fd-cluster.js +++ b/test/parallel/test-listen-fd-cluster.js @@ -10,7 +10,7 @@ var cluster = require('cluster'); console.error('Cluster listen fd test', process.argv.slice(2)); if (process.platform === 'win32') { - console.error('This test is disabled on windows.'); + console.log('1..0 # Skipped: This test is disabled on windows.'); return; } diff --git a/test/parallel/test-listen-fd-detached-inherit.js b/test/parallel/test-listen-fd-detached-inherit.js index 7e8f7fbaf8a018..3660766293dbdc 100644 --- a/test/parallel/test-listen-fd-detached-inherit.js +++ b/test/parallel/test-listen-fd-detached-inherit.js @@ -7,7 +7,7 @@ var PORT = common.PORT; var spawn = require('child_process').spawn; if (process.platform === 'win32') { - console.error('This test is disabled on windows.'); + console.log('1..0 # Skipped: This test is disabled on windows.'); return; } diff --git a/test/parallel/test-listen-fd-detached.js b/test/parallel/test-listen-fd-detached.js index fceedfd25251dc..b7af1a6a4935ef 100644 --- a/test/parallel/test-listen-fd-detached.js +++ b/test/parallel/test-listen-fd-detached.js @@ -7,7 +7,7 @@ var PORT = common.PORT; var spawn = require('child_process').spawn; if (process.platform === 'win32') { - console.error('This test is disabled on windows.'); + console.log('1..0 # Skipped: This test is disabled on windows.'); return; } diff --git a/test/parallel/test-listen-fd-server.js b/test/parallel/test-listen-fd-server.js index b922c25ee10683..8451a79c9e3716 100644 --- a/test/parallel/test-listen-fd-server.js +++ b/test/parallel/test-listen-fd-server.js @@ -7,7 +7,7 @@ var PORT = common.PORT; var spawn = require('child_process').spawn; if (process.platform === 'win32') { - console.error('This test is disabled on windows.'); + console.log('1..0 # Skipped: This test is disabled on windows.'); return; } diff --git a/test/parallel/test-module-loading-error.js b/test/parallel/test-module-loading-error.js index f33605d44ee949..346b04f6352dd1 100644 --- a/test/parallel/test-module-loading-error.js +++ b/test/parallel/test-module-loading-error.js @@ -13,7 +13,7 @@ var error_desc = { var dlerror_msg = error_desc[process.platform]; if (!dlerror_msg) { - console.error('Skipping test, platform not supported.'); + console.log('1..0 # Skipped: platform not supported.'); process.exit(); } diff --git a/test/parallel/test-net-connect-options-ipv6.js b/test/parallel/test-net-connect-options-ipv6.js index 0ac1367ede1cce..f0f7bc65b3c7eb 100644 --- a/test/parallel/test-net-connect-options-ipv6.js +++ b/test/parallel/test-net-connect-options-ipv6.js @@ -5,7 +5,7 @@ var net = require('net'); var dns = require('dns'); if (!common.hasIPv6) { - console.error('Skipping test, no IPv6 support'); + console.log('1..0 # Skipped: no IPv6 support'); return; } diff --git a/test/parallel/test-process-getgroups.js b/test/parallel/test-process-getgroups.js index 1cb5f38c1db203..b18b5a0f2f90d4 100644 --- a/test/parallel/test-process-getgroups.js +++ b/test/parallel/test-process-getgroups.js @@ -4,7 +4,7 @@ var assert = require('assert'); var exec = require('child_process').exec; if (process.platform === 'darwin') { - console.log('Skipping. Output of `id -G` is unreliable on Darwin.'); + console.log('1..0 # Skipped: Output of `id -G` is unreliable on Darwin.'); return; } diff --git a/test/parallel/test-stdio-closed.js b/test/parallel/test-stdio-closed.js index 2101f85ac061c3..afa8de96325fd0 100644 --- a/test/parallel/test-stdio-closed.js +++ b/test/parallel/test-stdio-closed.js @@ -4,7 +4,7 @@ var assert = require('assert'); var spawn = require('child_process').spawn; if (process.platform === 'win32') { - console.log('Skipping test, platform not supported.'); + console.log('1..0 # Skipped: platform not supported.'); return; } diff --git a/test/parallel/test-tls-alert-handling.js b/test/parallel/test-tls-alert-handling.js index ed8999b6b7a409..fc9d7cdce2b40e 100644 --- a/test/parallel/test-tls-alert-handling.js +++ b/test/parallel/test-tls-alert-handling.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.opensslCli) { - console.error('Skipping because node compiled without OpenSSL CLI.'); + console.log('1..0 # Skipped: node compiled without OpenSSL CLI.'); process.exit(0); } diff --git a/test/parallel/test-tls-alert.js b/test/parallel/test-tls-alert.js index 97087d0b3b4c03..aa42565a704bdb 100644 --- a/test/parallel/test-tls-alert.js +++ b/test/parallel/test-tls-alert.js @@ -3,7 +3,7 @@ var common = require('../common'); var assert = require('assert'); if (!common.opensslCli) { - console.error('Skipping because node compiled without OpenSSL CLI.'); + console.log('1..0 # Skipped: node compiled without OpenSSL CLI.'); process.exit(0); } diff --git a/test/parallel/test-tls-no-sslv3.js b/test/parallel/test-tls-no-sslv3.js index 4e1975a1e00a25..4bdf1dfa588611 100644 --- a/test/parallel/test-tls-no-sslv3.js +++ b/test/parallel/test-tls-no-sslv3.js @@ -12,7 +12,7 @@ var fs = require('fs'); var spawn = require('child_process').spawn; if (common.opensslCli === false) { - console.error('Skipping because openssl command cannot be executed'); + console.log('1..0 # Skipped: node compiled without OpenSSL CLI.'); process.exit(0); } diff --git a/test/parallel/test-tls-npn-server-client.js b/test/parallel/test-tls-npn-server-client.js index 6e877b7ddef19f..5d6022fd64857f 100644 --- a/test/parallel/test-tls-npn-server-client.js +++ b/test/parallel/test-tls-npn-server-client.js @@ -1,7 +1,7 @@ 'use strict'; if (!process.features.tls_npn) { - console.error('Skipping because node compiled without OpenSSL or ' + - 'with old OpenSSL version.'); + console.log('1..0 # Skipped: node compiled without OpenSSL or ' + + 'with old OpenSSL version.'); process.exit(0); } diff --git a/test/parallel/test-tls-ocsp-callback.js b/test/parallel/test-tls-ocsp-callback.js index 73f1c5772a59fb..e61e49d2928143 100644 --- a/test/parallel/test-tls-ocsp-callback.js +++ b/test/parallel/test-tls-ocsp-callback.js @@ -2,12 +2,12 @@ var common = require('../common'); if (!process.features.tls_ocsp) { - console.error('Skipping because node compiled without OpenSSL or ' + - 'with old OpenSSL version.'); + console.log('1..0 # Skipped: node compiled without OpenSSL or ' + + 'with old OpenSSL version.'); process.exit(0); } if (!common.opensslCli) { - console.error('Skipping because node compiled without OpenSSL CLI.'); + console.log('1..0 # Skipped: node compiled without OpenSSL CLI.'); process.exit(0); } diff --git a/test/parallel/test-tls-server-verify.js b/test/parallel/test-tls-server-verify.js index 387ede8abc3554..825fdfc95091b9 100644 --- a/test/parallel/test-tls-server-verify.js +++ b/test/parallel/test-tls-server-verify.js @@ -2,7 +2,7 @@ var common = require('../common'); if (!common.opensslCli) { - console.error('Skipping because node compiled without OpenSSL CLI.'); + console.log('1..0 # Skipped: node compiled without OpenSSL CLI.'); process.exit(0); } diff --git a/test/parallel/test-tls-session-cache.js b/test/parallel/test-tls-session-cache.js index 9b3da2717096be..d4a8bdf8d4b135 100644 --- a/test/parallel/test-tls-session-cache.js +++ b/test/parallel/test-tls-session-cache.js @@ -2,7 +2,7 @@ var common = require('../common'); if (!common.opensslCli) { - console.error('Skipping because node compiled without OpenSSL CLI.'); + console.log('1..0 # Skipped: node compiled without OpenSSL CLI.'); process.exit(0); } diff --git a/test/parallel/test-tls-set-ciphers.js b/test/parallel/test-tls-set-ciphers.js index f5284c1b58b4ac..2569d4bfd0ba87 100644 --- a/test/parallel/test-tls-set-ciphers.js +++ b/test/parallel/test-tls-set-ciphers.js @@ -2,7 +2,7 @@ var common = require('../common'); if (!common.opensslCli) { - console.error('Skipping because node compiled without OpenSSL CLI.'); + console.log('1..0 # Skipped: node compiled without OpenSSL CLI.'); process.exit(0); } diff --git a/test/parallel/test-tls-sni-option.js b/test/parallel/test-tls-sni-option.js index 68ef2caa9819d3..733510a0c45a16 100644 --- a/test/parallel/test-tls-sni-option.js +++ b/test/parallel/test-tls-sni-option.js @@ -1,7 +1,7 @@ 'use strict'; if (!process.features.tls_sni) { - console.error('Skipping because node compiled without OpenSSL or ' + - 'with old OpenSSL version.'); + console.log('1..0 # Skipped: node compiled without OpenSSL or ' + + 'with old OpenSSL version.'); process.exit(0); } diff --git a/test/parallel/test-tls-sni-server-client.js b/test/parallel/test-tls-sni-server-client.js index dec829face184e..7bda717bb78680 100644 --- a/test/parallel/test-tls-sni-server-client.js +++ b/test/parallel/test-tls-sni-server-client.js @@ -1,7 +1,7 @@ 'use strict'; if (!process.features.tls_sni) { - console.error('Skipping because node compiled without OpenSSL or ' + - 'with old OpenSSL version.'); + console.log('1..0 # Skipped: node compiled without OpenSSL or ' + + 'with old OpenSSL version.'); process.exit(0); } diff --git a/test/parallel/test-tty-wrap.js b/test/parallel/test-tty-wrap.js index 370c959ea297a6..815220865f332a 100644 --- a/test/parallel/test-tty-wrap.js +++ b/test/parallel/test-tty-wrap.js @@ -6,7 +6,7 @@ var TTY = process.binding('tty_wrap').TTY; var isTTY = process.binding('tty_wrap').isTTY; if (isTTY(1) == false) { - console.error('fd 1 is not a tty. skipping test.'); + console.log('1..0 # Skipped: fd 1 is not a tty.'); process.exit(0); } diff --git a/test/pummel/test-abort-fatal-error.js b/test/pummel/test-abort-fatal-error.js index 9f012c9dfb14b8..fb3f0944d7477b 100644 --- a/test/pummel/test-abort-fatal-error.js +++ b/test/pummel/test-abort-fatal-error.js @@ -3,7 +3,7 @@ var assert = require('assert'); var common = require('../common'); if (process.platform === 'win32') { - console.log('skipping test on windows'); + console.log('1..0 # Skipped: no RLIMIT_NOFILE on Windows'); process.exit(0); } diff --git a/test/pummel/test-dtrace-jsstack.js b/test/pummel/test-dtrace-jsstack.js index 831402fc87c780..e21de2153cb936 100644 --- a/test/pummel/test-dtrace-jsstack.js +++ b/test/pummel/test-dtrace-jsstack.js @@ -5,7 +5,7 @@ var os = require('os'); var util = require('util'); if (os.type() != 'SunOS') { - console.error('Skipping because DTrace not available.'); + console.log('1..0 # Skipped: no DTRACE support'); process.exit(0); } diff --git a/test/pummel/test-https-ci-reneg-attack.js b/test/pummel/test-https-ci-reneg-attack.js index fa38bea0011131..77616b0e275110 100644 --- a/test/pummel/test-https-ci-reneg-attack.js +++ b/test/pummel/test-https-ci-reneg-attack.js @@ -13,7 +13,7 @@ var https = require('https'); var fs = require('fs'); if (!common.opensslCli) { - console.error('Skipping because node compiled without OpenSSL CLI.'); + console.log('1..0 # Skipped: node compiled without OpenSSL CLI.'); process.exit(0); } diff --git a/test/pummel/test-keep-alive.js b/test/pummel/test-keep-alive.js index d03cb1d74f3683..24d3658820465e 100644 --- a/test/pummel/test-keep-alive.js +++ b/test/pummel/test-keep-alive.js @@ -1,6 +1,6 @@ 'use strict'; if (process.platform === 'win32') { - console.log('skipping this test because there is no wrk on windows'); + console.log('1..0 # Skipped: no `wrk` on windows'); process.exit(0); } diff --git a/test/pummel/test-tls-ci-reneg-attack.js b/test/pummel/test-tls-ci-reneg-attack.js index 49b9a87a7dbdc3..a3c9ba921cbda4 100644 --- a/test/pummel/test-tls-ci-reneg-attack.js +++ b/test/pummel/test-tls-ci-reneg-attack.js @@ -12,7 +12,7 @@ var tls = require('tls'); var fs = require('fs'); if (!common.opensslCli) { - console.error('Skipping because node compiled without OpenSSL CLI.'); + console.log('1..0 # Skipped: node compiled without OpenSSL CLI.'); process.exit(0); } diff --git a/test/pummel/test-tls-securepair-client.js b/test/pummel/test-tls-securepair-client.js index 7542ce62bcd154..6d36ae4a367f5f 100644 --- a/test/pummel/test-tls-securepair-client.js +++ b/test/pummel/test-tls-securepair-client.js @@ -4,7 +4,7 @@ var common = require('../common'); if (!common.opensslCli) { - console.error('Skipping because node compiled without OpenSSL CLI.'); + console.log('1..0 # Skipped: node compiled without OpenSSL CLI.'); process.exit(0); } diff --git a/test/pummel/test-tls-session-timeout.js b/test/pummel/test-tls-session-timeout.js index 962b1206b6c956..0e8abf7bcbcb12 100644 --- a/test/pummel/test-tls-session-timeout.js +++ b/test/pummel/test-tls-session-timeout.js @@ -2,7 +2,7 @@ var common = require('../common'); if (!common.opensslCli) { - console.error('Skipping because node compiled without OpenSSL CLI.'); + console.log('1..0 # Skipped: node compiled without OpenSSL CLI.'); process.exit(0); } diff --git a/test/sequential/test-child-process-emfile.js b/test/sequential/test-child-process-emfile.js index 964b63a2b4513d..ad67411e9e52e5 100644 --- a/test/sequential/test-child-process-emfile.js +++ b/test/sequential/test-child-process-emfile.js @@ -5,7 +5,7 @@ var spawn = require('child_process').spawn; var fs = require('fs'); if (process.platform === 'win32') { - console.log('Skipping test, no RLIMIT_NOFILE on Windows.'); + console.log('1..0 # Skipped: no RLIMIT_NOFILE on Windows'); return; } diff --git a/test/sequential/test-net-server-address.js b/test/sequential/test-net-server-address.js index 1e91c348ef02ca..8c57cb742e2d02 100644 --- a/test/sequential/test-net-server-address.js +++ b/test/sequential/test-net-server-address.js @@ -37,7 +37,7 @@ server_ipv6.listen(common.PORT, localhost_ipv6, function() { }); if (!common.hasIPv6) { - console.error('Skipping ipv6 part of test, no IPv6 support'); + console.log('1..0 # Skipped: ipv6 part of test, no IPv6 support'); return; } diff --git a/test/sequential/test-setproctitle.js b/test/sequential/test-setproctitle.js index 61b3e470cded9e..1c20dc5dd1a9e4 100644 --- a/test/sequential/test-setproctitle.js +++ b/test/sequential/test-setproctitle.js @@ -3,7 +3,7 @@ // FIXME add sunos support if ('linux freebsd darwin'.indexOf(process.platform) === -1) { - console.error('Skipping test, platform not supported.'); + console.log(`1..0 # Skipped: Unsupported platform [${process.platform}]`); process.exit(); }