Exemplo n.º 1
0
    def get_result_summary(self, test_names, expectations_str):
        port.test_expectations = lambda: expectations_str
        port.test_expectations_overrides = lambda: None
        expectations = test_expectations.TestExpectations(self._port, test_names)

        rs = result_summary.ResultSummary(expectations, test_names)
        return test_names, rs, expectations
Exemplo n.º 2
0
 def get_result_summary(self, port, test_names, expectations_str):
     expectations = test_expectations.TestExpectations(
         port,
         test_names,
         expectations_str,
         port.test_configuration(),
         is_lint_mode=False)
     return test_names, result_summary.ResultSummary(
         expectations, test_names), expectations
Exemplo n.º 3
0
 def test_look_for_new_crash_logs(self):
     def get_manager_with_tests(test_names):
         host = MockHost()
         port = host.port_factory.get('test-mac-leopard')
         manager = Manager(port, options=MockOptions(test_list=None, http=True), printer=Mock())
         manager.collect_tests(test_names)
         return manager
     host = MockHost()
     port = host.port_factory.get('test-mac-leopard')
     tests = ['failures/expected/crash.html']
     expectations = test_expectations.TestExpectations(port, tests)
     rs = result_summary.ResultSummary(expectations, tests)
     manager = get_manager_with_tests(tests)
     manager._look_for_new_crash_logs(rs, time.time())
Exemplo n.º 4
0
 def get_result_summary(self, port, test_names, expectations_str):
     port.expectations_dict = lambda: {'': expectations_str}
     expectations = test_expectations.TestExpectations(port, test_names)
     return test_names, result_summary.ResultSummary(expectations, test_names), expectations