summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Christopher Anderson <jchris@apache.org>2009-10-14 06:35:10 +0000
committerJohn Christopher Anderson <jchris@apache.org>2009-10-14 06:35:10 +0000
commitb9acb985cc532cc444474d07d86e7b4051dd64c3 (patch)
treefe8055c67f513d19d2fb25639f56dfaa0f2e3c52
parent623f3cc4f4191daa11c8726a0a80d1afad890cab (diff)
save report with node version info
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@825020 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--share/www/script/couch_test_runner.js12
1 files changed, 9 insertions, 3 deletions
diff --git a/share/www/script/couch_test_runner.js b/share/www/script/couch_test_runner.js
index de9e6658..a71ff82f 100644
--- a/share/www/script/couch_test_runner.js
+++ b/share/www/script/couch_test_runner.js
@@ -158,11 +158,17 @@ function saveTestReport() {
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});
}