couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject [5/6] couchdb commit: updated refs/heads/1843-feature-bigcouch to bf75f47
Date Fri, 07 Feb 2014 04:57:34 GMT
Lower case results look better


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

Branch: refs/heads/1843-feature-bigcouch
Commit: 4cc6b4ee8fa6b05fb8a49d70526c6c29a6e5f0fd
Parents: f2393c0
Author: Paul J. Davis <paul.joseph.davis@gmail.com>
Authored: Thu Feb 6 22:40:20 2014 -0600
Committer: Paul J. Davis <paul.joseph.davis@gmail.com>
Committed: Thu Feb 6 22:40:20 2014 -0600

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


http://git-wip-us.apache.org/repos/asf/couchdb/blob/4cc6b4ee/test/javascript/run
----------------------------------------------------------------------
diff --git a/test/javascript/run b/test/javascript/run
index e120d72..9b90cc7 100755
--- a/test/javascript/run
+++ b/test/javascript/run
@@ -66,9 +66,9 @@ def run_couchjs(test):
             sys.stderr.write(line)
     p.wait()
     if p.returncode == 0:
-        sys.stderr.write("OK" + os.linesep)
+        sys.stderr.write("pass" + os.linesep)
     else:
-        sys.stderr.write("FAIL" + os.linesep)
+        sys.stderr.write("fail" + os.linesep)
     sys.stderr.flush()
 
 
@@ -89,12 +89,14 @@ def main():
         elif os.path.isfile(name):
             tests.append(name)
         else:
-            name = os.path.join("share/www/script/test", name)
-            if os.path.isfile(name):
-                tests.append(name)
-            elif os.path.isfile(name + ".js"):
-                tests.append(name + ".js")
-
+            pname = os.path.join("share/www/script/test", name)
+            if os.path.isfile(pname):
+                tests.append(pname)
+            elif os.path.isfile(pname + ".js"):
+                tests.append(pname + ".js")
+            else:
+                sys.stderr.write("Unknown test: " + name + os.linesep)
+                exit(1)
     for test in tests:
         run_couchjs(test)
 


Mime
View raw message