You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2014/02/07 05:57:35 UTC

[6/6] couchdb commit: updated refs/heads/1843-feature-bigcouch to bf75f47

Align the pass/fail messages

Just trying to fill idle time while watching the test suite run.


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/bf75f472
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/bf75f472
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/bf75f472

Branch: refs/heads/1843-feature-bigcouch
Commit: bf75f472973189e1cabfea7b417dfcfa9683a265
Parents: 4cc6b4e
Author: Paul J. Davis <pa...@gmail.com>
Authored: Thu Feb 6 22:56:56 2014 -0600
Committer: Paul J. Davis <pa...@gmail.com>
Committed: Thu Feb 6 22:56:56 2014 -0600

----------------------------------------------------------------------
 test/javascript/run | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/bf75f472/test/javascript/run
----------------------------------------------------------------------
diff --git a/test/javascript/run b/test/javascript/run
index 9b90cc7..a0f1112 100755
--- a/test/javascript/run
+++ b/test/javascript/run
@@ -45,8 +45,9 @@ SCRIPTS = """
 RUNNER = "test/javascript/cli_runner.js"
 
 
-def run_couchjs(test):
-    sys.stderr.write(test + " ... ")
+def run_couchjs(test, longname):
+    padding = (longname - len(test)) * " "
+    sys.stderr.write(test + "   " + padding)
     sys.stderr.flush()
     cmd = [COUCHJS, "-H"] + SCRIPTS + [test, RUNNER]
     p = sp.Popen(
@@ -97,8 +98,9 @@ def main():
             else:
                 sys.stderr.write("Unknown test: " + name + os.linesep)
                 exit(1)
+    longname = max(map(len, tests))
     for test in tests:
-        run_couchjs(test)
+        run_couchjs(test, longname)