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 2020/01/08 19:50:30 UTC

[couchdb] 01/02: Log the exit code of couchjs

This is an automated email from the ASF dual-hosted git repository.

davisp pushed a commit to branch debug-javascript-test-failures
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 4f306782f948c4e7ac5f1b3486bfb952b51bdd78
Author: Paul J. Davis <pa...@gmail.com>
AuthorDate: Wed Jan 8 13:48:46 2020 -0600

    Log the exit code of couchjs
    
    Recently we've been seeing the `couchjs` test runner exiting without
    displaying a traceback of an error. This logs the exit code of the OS
    process to see if that gives any insight into why its exiting.
---
 test/javascript/run | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/javascript/run b/test/javascript/run
index ac49e3a..a465a7b 100755
--- a/test/javascript/run
+++ b/test/javascript/run
@@ -58,7 +58,7 @@ def mkformatter(tests):
         elif rval == 3:
             return green + "ported to elixir" + clear
         else:
-            return red + "fail" + clear
+            return red + ("fail: %d" % rval) + clear
 
     def _fmt(test):
         if isinstance(test, str):