Exemplo n.º 1
0
 def build_generate_command(self, xml_file, html_file):
     """Function builds a command for generating results"""
     command = self.get_binary()
     command.extend(self.get_command_generate())
     command.extend(("--output", html_file))
     command.append(check_xml(xml_file))
     return command
Exemplo n.º 2
0
    def build_command(self):
        """create command from configuration"""
        self.result_file = self.get_default_xml_result_path()
        command = self.get_binary()
        report = self.get_default_html_result_path()
        command.extend(self.command_eval)
        command.append('--progress')
        command.extend(('--profile', self.conf.profile))

        # take name of content and create report: <content_name>.html
        #command.extend(('--report', report))
        command.extend(("--results", self.result_file))
        command.append(check_xml(self.content))
        return command