예제 #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
예제 #2
0
파일: html.py 프로젝트: JGMarshall/avocado
    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)
예제 #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)
예제 #4
0
파일: html.py 프로젝트: chloerh/avocado
    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)
예제 #5
0
 def run(self, args):
     if 'journal' in args and args.journal is True:
         register_test_result_class(args, TestResultJournal)
예제 #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")
예제 #7
0
파일: ec2.py 프로젝트: fruch/avocado-ec2
 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
예제 #8
0
파일: json.py 프로젝트: wkf31156/avocado
 def run(self, args):
     if 'json_output' in args and args.json_output is not None:
         register_test_result_class(args, JSONTestResult)
예제 #9
0
파일: vm.py 프로젝트: chloerh/avocado
 def run(self, args):
     if self._check_required_args(args, 'vm_domain', ('vm_domain',)):
         register_test_result_class(args, VMTestResult)
         args.test_runner = VMTestRunner
예제 #10
0
파일: vm.py 프로젝트: adereis/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')
예제 #11
0
파일: vm.py 프로젝트: 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')
예제 #12
0
 def run(self, args):
     if 'xunit_output' in args and args.xunit_output is not None:
         register_test_result_class(args, xUnitTestResult)
예제 #13
0
 def run(self, args):
     if 'xunit_output' in args and args.xunit_output is not None:
         register_test_result_class(args, xUnitTestResult)
예제 #14
0
파일: remote.py 프로젝트: wkf31156/avocado
 def run(self, args):
     if self._check_required_args(args, 'remote_hostname',
                                  ('remote_hostname',)):
         register_test_result_class(args, RemoteTestResult)
         args.test_runner = RemoteTestRunner
예제 #15
0
파일: vm.py 프로젝트: king32783784/avocado
 def run(self, args):
     if self._check_required_args(args, 'vm_domain', ('vm_domain', )):
         register_test_result_class(args, VMTestResult)
         args.test_runner = VMTestRunner
예제 #16
0
 def run(self, args):
     if getattr(args, "tap", False):
         register_test_result_class(args, TAPResult)
예제 #17
0
 def run(self, args):
     if 'journal' in args and args.journal is True:
         register_test_result_class(args, TestResultJournal)
예제 #18
0
 def run(self, args):
     if getattr(args, "tap", False):
         register_test_result_class(args, TAPResult)
예제 #19
0
파일: json.py 프로젝트: JGMarshall/avocado
 def run(self, args):
     if 'json_output' in args and args.json_output is not None:
         register_test_result_class(args, JSONTestResult)
예제 #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
예제 #21
0
파일: remote.py 프로젝트: yafu-1/avocado
 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')