OLD | NEW |
1 # Copyright (C) 2010 Google Inc. All rights reserved. | 1 # Copyright (C) 2010 Google Inc. All rights reserved. |
2 # Copyright (C) 2010 Gabor Rapcsanyi (rgabor@inf.u-szeged.hu), University of Sze
ged | 2 # Copyright (C) 2010 Gabor Rapcsanyi (rgabor@inf.u-szeged.hu), University of Sze
ged |
3 # | 3 # |
4 # Redistribution and use in source and binary forms, with or without | 4 # Redistribution and use in source and binary forms, with or without |
5 # modification, are permitted provided that the following conditions are | 5 # modification, are permitted provided that the following conditions are |
6 # met: | 6 # met: |
7 # | 7 # |
8 # * Redistributions of source code must retain the above copyright | 8 # * Redistributions of source code must retain the above copyright |
9 # notice, this list of conditions and the following disclaimer. | 9 # notice, this list of conditions and the following disclaimer. |
10 # * Redistributions in binary form must reproduce the above | 10 # * Redistributions in binary form must reproduce the above |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 self.assertFalse(manager.needs_servers(['fast/html'])) | 53 self.assertFalse(manager.needs_servers(['fast/html'])) |
54 | 54 |
55 manager = get_manager() | 55 manager = get_manager() |
56 self.assertTrue(manager.needs_servers(['http/tests/misc'])) | 56 self.assertTrue(manager.needs_servers(['http/tests/misc'])) |
57 | 57 |
58 def test_servers_started(self): | 58 def test_servers_started(self): |
59 def get_manager(port): | 59 def get_manager(port): |
60 manager = Manager(port, options=MockOptions(http=True, max_locked_sh
ards=1), printer=Mock()) | 60 manager = Manager(port, options=MockOptions(http=True, max_locked_sh
ards=1), printer=Mock()) |
61 return manager | 61 return manager |
62 | 62 |
63 def start_http_server(number_of_drivers): | 63 def start_http_server(additional_dirs, number_of_drivers): |
64 self.http_started = True | 64 self.http_started = True |
65 | 65 |
66 def start_websocket_server(): | 66 def start_websocket_server(): |
67 self.websocket_started = True | 67 self.websocket_started = True |
68 | 68 |
69 def stop_http_server(): | 69 def stop_http_server(): |
70 self.http_stopped = True | 70 self.http_stopped = True |
71 | 71 |
72 def stop_websocket_server(): | 72 def stop_websocket_server(): |
73 self.websocket_stopped = True | 73 self.websocket_stopped = True |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 port = host.port_factory.get('test-mac-leopard') | 111 port = host.port_factory.get('test-mac-leopard') |
112 manager = Manager(port, options=MockOptions(test_list=None, http=Tru
e, max_locked_shards=1), printer=Mock()) | 112 manager = Manager(port, options=MockOptions(test_list=None, http=Tru
e, max_locked_shards=1), printer=Mock()) |
113 return manager | 113 return manager |
114 host = MockHost() | 114 host = MockHost() |
115 port = host.port_factory.get('test-mac-leopard') | 115 port = host.port_factory.get('test-mac-leopard') |
116 tests = ['failures/expected/crash.html'] | 116 tests = ['failures/expected/crash.html'] |
117 expectations = test_expectations.TestExpectations(port, tests) | 117 expectations = test_expectations.TestExpectations(port, tests) |
118 run_results = TestRunResults(expectations, len(tests)) | 118 run_results = TestRunResults(expectations, len(tests)) |
119 manager = get_manager() | 119 manager = get_manager() |
120 manager._look_for_new_crash_logs(run_results, time.time()) | 120 manager._look_for_new_crash_logs(run_results, time.time()) |
OLD | NEW |