From 277772eb064e9fc0fcb542172895ae4ea6377753 Mon Sep 17 00:00:00 2001 From: Ryan Graham Date: Tue, 26 Jul 2016 14:06:06 -0700 Subject: [PATCH] test: don't polute TAP output with test debug --- test/load-msg-helper.js | 2 +- test/slt-test-helper.js | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/load-msg-helper.js b/test/load-msg-helper.js index f60cbf6..a64a452 100755 --- a/test/load-msg-helper.js +++ b/test/load-msg-helper.js @@ -101,7 +101,7 @@ function secondaryMgr(rootDir, lang, t, aml, positive, callback) { msgFound.push(msg.message); if (msgFound.length === (msgWanted[lang].length + 1)) { for (var i = 0; i < msgFound.length - 1; i++) { - console.log('checking', msgWanted[lang][i]); + t.comment('checking', msgWanted[lang][i]); if (positive) { t.match(msgFound[i + 1], msgWanted[lang][i], lang + ' message ' + i.toString() + ' is correct.'); diff --git a/test/slt-test-helper.js b/test/slt-test-helper.js index 6501a15..e953e8c 100644 --- a/test/slt-test-helper.js +++ b/test/slt-test-helper.js @@ -67,7 +67,7 @@ function testHarness(t, targets, noFixtures, testCallback, testAllDone) { function checkErrMsg(outMsg, errMsg, key, targets, t) { outMsg = stripRootDirInfo(outMsg, key); errMsg = stripRootDirInfo(errMsg, key); - if (DEBUG) console.log( + if (DEBUG) t.comment( '\n<<< BEGIN', key, '\nout ________________\n', outMsg, @@ -119,19 +119,19 @@ function testHarness(t, targets, noFixtures, testCallback, testAllDone) { keys.forEach(function(key) { if (noFixtures) { var dir = path.join(destDir, key); - console.log('--- making dir: %s', dir); + t.comment('--- making dir: %s', dir); shell.mkdir('-p', dir); - console.log('----- made dir: %s', dir); + t.comment('----- made dir: %s', dir); } else { var dir = path.join(__dirname, 'fixtures', key); copyDirs.push(dir); } }); if (!noFixtures) { - console.log('--- copying %d: %s to %s', + t.comment('--- copying %d: %s to %s', copyDirs.length, JSON.stringify(copyDirs, null, 2), destDir); shell.cp('-r', copyDirs, destDir); - console.log('---- copied %d: %s to %s', + t.comment('---- copied %d: %s to %s', copyDirs.length, JSON.stringify(copyDirs, null, 2), destDir); } var asyncTasks = [];