예제 #1
0
    def do_cli(self, argv, BisectRunner, get_cache, set_http_cache_session,
               setup_logging):
        def create_runner(fetch_config, test_runner, options):
            self.runner.fetch_config = fetch_config
            self.runner.test_runner = test_runner
            self.runner.options = options
            return self.runner

        BisectRunner.side_effect = create_runner
        try:
            main.cli(argv)
        except SystemExit as exc:
            return exc.code
        else:
            self.fail('mozregression.main.cli did not call sys.exit')
예제 #2
0
    def do_cli(self, argv, BisectRunner, get_cache, set_http_cache_session,
               setup_logging, get_defaults, check_mozregression_version):
        get_defaults.return_value = dict()

        def create_runner(fetch_config, test_runner, options):
            self.runner.fetch_config = fetch_config
            self.runner.test_runner = test_runner
            self.runner.options = options
            return self.runner
        BisectRunner.side_effect = create_runner
        try:
            main.cli(argv)
        except SystemExit as exc:
            return exc.code
        else:
            self.fail('mozregression.main.cli did not call sys.exit')
예제 #3
0
 def __call__(self, argv):
     config = main.cli(argv, conf_file=None)
     config.validate()
     self.app = main.Application(config.fetch_config, config.options)
     self.app._logger.info = self.logs.append
     self.app._logger.warning = self.logs.append
     return self.app
예제 #4
0
 def __call__(self, argv):
     config = main.cli(argv, conf_file=None)
     config.validate()
     self.app = main.Application(config.fetch_config, config.options)
     return self.app
예제 #5
0
 def __call__(self, argv):
     config = main.cli(argv, conf_file=None)
     config.validate()
     self.app = main.Application(config.fetch_config, config.options)
     return self.app