summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul J. Davis <paul.joseph.davis@gmail.com>2014-02-06 23:28:43 -0600
committerPaul J. Davis <paul.joseph.davis@gmail.com>2014-02-06 23:28:43 -0600
commit68053b16b4c36cf6413d039081bfa0d8d16b7fe1 (patch)
tree01da05f001ba1494b1fc6b8312c98c8ffb376fa1
parent6abe6c805ab6fdcce06f746891e9f3a1624f3053 (diff)
downloadcouchdb-68053b16b4c36cf6413d039081bfa0d8d16b7fe1.tar.gz
Clear a line before printing JS test errors
-rw-r--r--test/javascript/cli_runner.js2
-rw-r--r--test/javascript/test_setup.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/javascript/cli_runner.js b/test/javascript/cli_runner.js
index b63d1e735..dbaf1c216 100644
--- a/test/javascript/cli_runner.js
+++ b/test/javascript/cli_runner.js
@@ -37,7 +37,7 @@ function runTest() {
couchTests[name]();
quit(0);
} catch(e) {
- console.log("Error: " + e.message);
+ console.log("\nError: " + e.message);
fmtStack(e.stack);
quit(1)
}
diff --git a/test/javascript/test_setup.js b/test/javascript/test_setup.js
index aaf05625b..0a24c8a2d 100644
--- a/test/javascript/test_setup.js
+++ b/test/javascript/test_setup.js
@@ -61,7 +61,7 @@ function waitForSuccess(fun, tag) {
var now = new Date().getTime();
if (now > start + 5000) {
complete = true;
- print('FAIL ' + tag);
+ print('\nFAIL ' + tag);
quit(1);
}
try {