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

[31/50] [abbrv] 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/8facfb6b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/8facfb6b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/8facfb6b

Branch: refs/heads/javelin
Commit: 8facfb6b1dcc3e0f5a63ed4cb8e0a2a695ca306d
Parents: 07b76bf
Author: Prasanna Santhanam <Pr...@citrix.com>
Authored: Tue Sep 11 10:02:32 2012 +0530
Committer: Alex Huang <al...@citrix.com>
Committed: Tue Sep 11 17:38:10 2012 -0700

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


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/8facfb6b/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",