From 8facfb6b1dcc3e0f5a63ed4cb8e0a2a695ca306d Mon Sep 17 00:00:00 2001 From: Prasanna Santhanam Date: Tue, 11 Sep 2012 10:02:32 +0530 Subject: [PATCH] Write results to stdout when result log is not specified --- tools/marvin/marvin/marvinPlugin.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/marvin/marvin/marvinPlugin.py b/tools/marvin/marvin/marvinPlugin.py index 5e0c6dadb32..0251e96a2bb 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",