Exemple #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
Exemple #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)
Exemple #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)
Exemple #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)
Exemple #5
0
 def run(self, args):
     if 'journal' in args and args.journal is True:
         register_test_result_class(args, TestResultJournal)
Exemple #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")
Exemple #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
Exemple #8
0
 def run(self, args):
     if 'json_output' in args and args.json_output is not None:
         register_test_result_class(args, JSONTestResult)
Exemple #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
Exemple #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')
Exemple #11
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')
Exemple #12
0
 def run(self, args):
     if 'xunit_output' in args and args.xunit_output is not None:
         register_test_result_class(args, xUnitTestResult)
Exemple #13
0
 def run(self, args):
     if 'xunit_output' in args and args.xunit_output is not None:
         register_test_result_class(args, xUnitTestResult)
Exemple #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
Exemple #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
Exemple #16
0
 def run(self, args):
     if getattr(args, "tap", False):
         register_test_result_class(args, TAPResult)
Exemple #17
0
 def run(self, args):
     if 'journal' in args and args.journal is True:
         register_test_result_class(args, TestResultJournal)
Exemple #18
0
 def run(self, args):
     if getattr(args, "tap", False):
         register_test_result_class(args, TAPResult)
Exemple #19
0
 def run(self, args):
     if 'json_output' in args and args.json_output is not None:
         register_test_result_class(args, JSONTestResult)
Exemple #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
Exemple #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')