Don't override Robot's output 50/74650/1
authorCédric Ollivier <cedric.ollivier@orange.com>
Thu, 14 Nov 2024 16:30:10 +0000 (17:30 +0100)
committerCédric Ollivier <cedric.ollivier@orange.com>
Thu, 14 Nov 2024 16:30:10 +0000 (17:30 +0100)
Change-Id: I4c302f429f8cd87d7becee2bc4e4c5b1e2112ecb
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
xtesting/core/robotframework.py

index 92b7593..1f85303 100644 (file)
@@ -117,7 +117,8 @@ class RobotFramework(testcase.TestCase):
                 self.__logger.exception("Cannot create %s", self.res_dir)
                 return self.EX_RUN_ERROR
         stream = StringIO()
-        kwargs["output"] = self.xml_file
+        if 'output' not in kwargs:
+            kwargs["output"] = self.xml_file
         kwargs["log"] = "NONE"
         kwargs["report"] = "NONE"
         kwargs["stdout"] = stream