Change output dir 13/61513/1
authorCédric Ollivier <cedric.ollivier@orange.com>
Wed, 29 Aug 2018 09:26:24 +0000 (11:26 +0200)
committerCédric Ollivier <cedric.ollivier@orange.com>
Wed, 29 Aug 2018 09:27:16 +0000 (11:27 +0200)
It now reads case_name instead of selecting an hardcoded value
(robot).

Change-Id: I1dfb0daa2eb52f526abdf1664bf5ac36549509a6
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
xtesting/core/robotframework.py

index 4cba7bb..9865a26 100644 (file)
@@ -57,9 +57,9 @@ class RobotFramework(testcase.TestCase):
     dir_results = "/var/lib/xtesting/results"
 
     def __init__(self, **kwargs):
-        self.res_dir = os.path.join(self.dir_results, 'robot')
-        self.xml_file = os.path.join(self.res_dir, 'output.xml')
         super(RobotFramework, self).__init__(**kwargs)
+        self.res_dir = os.path.join(self.dir_results, self.case_name)
+        self.xml_file = os.path.join(self.res_dir, 'output.xml')
 
     def parse_results(self):
         """Parse output.xml and get the details in it."""