Ejemplo n.º 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')
Ejemplo n.º 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')
Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 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