couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jch...@apache.org
Subject svn commit: r825020 - /couchdb/trunk/share/www/script/couch_test_runner.js
Date Wed, 14 Oct 2009 06:35:11 GMT
Author: jchris
Date: Wed Oct 14 06:35:10 2009
New Revision: 825020

URL: http://svn.apache.org/viewvc?rev=825020&view=rev
Log:
save report with node version info

Modified:
    couchdb/trunk/share/www/script/couch_test_runner.js

Modified: couchdb/trunk/share/www/script/couch_test_runner.js
URL: http://svn.apache.org/viewvc/couchdb/trunk/share/www/script/couch_test_runner.js?rev=825020&r1=825019&r2=825020&view=diff
==============================================================================
--- couchdb/trunk/share/www/script/couch_test_runner.js (original)
+++ couchdb/trunk/share/www/script/couch_test_runner.js Wed Oct 14 06:35:10 2009
@@ -158,11 +158,17 @@
   var report = makeTestReport();
   if (report) {
     var db = $.couch.db("test_suite_reports");
-    var saveReport = function() {
-      db.saveDoc(report);        
+    var saveReport = function(db_info) {
+      report.db = db_info;
+      $.couch.info({success : function(node_info) {
+        report.node = node_info;
+        db.saveDoc(report);        
+      }})
     };
     var createDb = function() {
-      db.create({error: saveReport, success: saveReport});    
+      db.create({success: function() {
+        db.info({success:saveReport});        
+      }});    
     }
     db.info({error: createDb, success:saveReport});
   }



Mime
View raw message