Esempio 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
Esempio 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)
Esempio 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)
Esempio 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)
Esempio n. 5
0
 def run(self, args):
     if 'journal' in args and args.journal is True:
         register_test_result_class(args, TestResultJournal)
Esempio 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")
Esempio 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
Esempio 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)
Esempio 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
Esempio 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')
Esempio n. 11
0
File: vm.py Progetto: 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')
Esempio 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)
Esempio 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)
Esempio 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
Esempio 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
Esempio n. 16
0
 def run(self, args):
     if getattr(args, "tap", False):
         register_test_result_class(args, TAPResult)
Esempio n. 17
0
 def run(self, args):
     if 'journal' in args and args.journal is True:
         register_test_result_class(args, TestResultJournal)
Esempio n. 18
0
 def run(self, args):
     if getattr(args, "tap", False):
         register_test_result_class(args, TAPResult)
Esempio 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)
Esempio 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
Esempio 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')