You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ed...@apache.org on 2012/09/12 08:43:30 UTC

[34/41] git commit: Write results to stdout when result log is not specified

Write results to stdout when result log is not specified


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

Branch: refs/heads/4.0
Commit: c4f91b29143db505956878b59042b28524a433e2
Parents: 653cdb3
Author: Prasanna Santhanam <Pr...@citrix.com>
Authored: Tue Sep 11 10:02:32 2012 +0530
Committer: Prasanna Santhanam <ts...@apache.org>
Committed: Tue Sep 11 11:06:23 2012 +0530

----------------------------------------------------------------------
 tools/marvin/marvin/marvinPlugin.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/c4f91b29/tools/marvin/marvin/marvinPlugin.py
----------------------------------------------------------------------
diff --git a/tools/marvin/marvin/marvinPlugin.py b/tools/marvin/marvin/marvinPlugin.py
index 5e0c6da..0251e96 100644
--- a/tools/marvin/marvin/marvinPlugin.py
+++ b/tools/marvin/marvin/marvinPlugin.py
@@ -16,6 +16,7 @@
 # under the License.
 
 import marvin
+import sys
 import logging
 import nose.core
 from marvin.cloudstackTestCase import cloudstackTestCase
@@ -52,7 +53,7 @@ class MarvinPlugin(Plugin):
             self.logger.addHandler(ch)
             self.result_stream = open(options.result_log, "w")
         else:
-            self.result_stream = sys.stderr   
+            self.result_stream = sys.stdout
     
         deploy = deployDataCenter.deployDataCenters(options.config) 
         deploy.loadCfg() if options.load else deploy.deploy()
@@ -73,7 +74,7 @@ class MarvinPlugin(Plugin):
                           dest="config",
                           help="Marvin's configuration file where the datacenter information is specified [MARVIN_CONFIG]")
         parser.add_option("--result-log", action="store",
-                          default=env.get('RESULT_LOG', 'result.log'),
+                          default=env.get('RESULT_LOG', None),
                           dest="result_log",
                           help="The path to the results file where test summary will be written to [RESULT_LOG]")
         parser.add_option("--client-log", action="store",