Exemplo n.º 1
0
 def run(self, args):
     if self._check_required_args(args, 'ec2_ami_id',
                                  ('ec2_ami_id',
                                   'ec2_security_group_ids',
                                   'ec2_subnet_id',
                                   'ec2_instance_type')):
         register_test_result_class(args, EC2TestResult)
         args.test_runner = EC2TestRunner
Exemplo n.º 2
0
    def run(self, args):
        if 'html_output' in args and args.html_output == '-':
            log = logging.getLogger("avocado.app")
            log.error('HTML to stdout not supported (not all HTML resources '
                      'can be embedded on a single file)')
            sys.exit(exit_codes.AVOCADO_JOB_FAIL)

        if 'html_output' in args and args.html_output is not None:
            register_test_result_class(args, HTMLTestResult)
Exemplo n.º 3
0
    def run(self, args):
        if 'html_output' in args and args.html_output == '-':
            log = logging.getLogger("avocado.app")
            log.error('HTML to stdout not supported (not all HTML resources '
                      'can be embedded on a single file)')
            sys.exit(exit_codes.AVOCADO_JOB_FAIL)

        if 'html_output' in args and args.html_output is not None:
            register_test_result_class(args, HTMLTestResult)
Exemplo n.º 4
0
    def run(self, args):
        if 'html_output' in args and args.html_output == '-':
            view = output.View(app_args=args)
            view.notify(event='error',
                        msg='HTML to stdout not supported '
                        '(not all HTML resources can be embedded '
                        'on a single file)')
            sys.exit(exit_codes.AVOCADO_JOB_FAIL)

        if 'html_output' in args and args.html_output is not None:
            register_test_result_class(args, HTMLTestResult)
Exemplo n.º 5
0
 def run(self, args):
     if 'journal' in args and args.journal is True:
         register_test_result_class(args, TestResultJournal)
Exemplo n.º 6
0
 def run(self, args):
     if self._check_required_args(args, "remote_hostname", ("remote_hostname",)):
         register_test_result_class(args, RemoteResult)
         args.test_runner = RemoteTestRunner
         setattr(args, "stdout_claimed_by", "--remote-hostname")
Exemplo n.º 7
0
 def run(self, args):
     if self._check_required_args(args, 'ec2_ami_id',
                                  ('ec2_ami_id', 'ec2_security_group_ids',
                                   'ec2_subnet_id', 'ec2_instance_type')):
         register_test_result_class(args, EC2TestResult)
         args.test_runner = EC2TestRunner
Exemplo n.º 8
0
 def run(self, args):
     if 'json_output' in args and args.json_output is not None:
         register_test_result_class(args, JSONTestResult)
Exemplo n.º 9
0
 def run(self, args):
     if self._check_required_args(args, 'vm_domain', ('vm_domain',)):
         register_test_result_class(args, VMTestResult)
         args.test_runner = VMTestRunner
Exemplo n.º 10
0
 def run(self, args):
     if self._check_required_args(args, 'vm_domain', ('vm_domain',)):
         register_test_result_class(args, VMResult)
         args.test_runner = VMTestRunner
         setattr(args, 'stdout_claimed_by', '--vm-domain')
Exemplo n.º 11
0
Arquivo: vm.py Projeto: 1587/avocado
 def run(self, args):
     if self._check_required_args(args, 'vm_domain', ('vm_domain',)):
         register_test_result_class(args, VMResult)
         args.test_runner = VMTestRunner
         setattr(args, 'stdout_claimed_by', '--vm-domain')
Exemplo n.º 12
0
 def run(self, args):
     if 'xunit_output' in args and args.xunit_output is not None:
         register_test_result_class(args, xUnitTestResult)
Exemplo n.º 13
0
 def run(self, args):
     if 'xunit_output' in args and args.xunit_output is not None:
         register_test_result_class(args, xUnitTestResult)
Exemplo n.º 14
0
 def run(self, args):
     if self._check_required_args(args, 'remote_hostname',
                                  ('remote_hostname',)):
         register_test_result_class(args, RemoteTestResult)
         args.test_runner = RemoteTestRunner
Exemplo n.º 15
0
 def run(self, args):
     if self._check_required_args(args, 'vm_domain', ('vm_domain', )):
         register_test_result_class(args, VMTestResult)
         args.test_runner = VMTestRunner
Exemplo n.º 16
0
 def run(self, args):
     if getattr(args, "tap", False):
         register_test_result_class(args, TAPResult)
Exemplo n.º 17
0
 def run(self, args):
     if 'journal' in args and args.journal is True:
         register_test_result_class(args, TestResultJournal)
Exemplo n.º 18
0
 def run(self, args):
     if getattr(args, "tap", False):
         register_test_result_class(args, TAPResult)
Exemplo n.º 19
0
 def run(self, args):
     if 'json_output' in args and args.json_output is not None:
         register_test_result_class(args, JSONTestResult)
Exemplo n.º 20
0
 def run(self, args):
     if self._check_required_args(args, 'remote_hostname',
                                  ('remote_hostname',)):
         register_test_result_class(args, RemoteTestResult)
         args.test_runner = RemoteTestRunner
Exemplo n.º 21
0
 def run(self, args):
     if self._check_required_args(args, 'remote_hostname',
                                  ('remote_hostname', )):
         register_test_result_class(args, RemoteResult)
         args.test_runner = RemoteTestRunner
         setattr(args, 'stdout_claimed_by', '--remote-hostname')