summaryrefslogtreecommitdiffstats
path: root/Tools/Scripts/webkitpy/layout_tests/controllers/manager_unittest.py
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/Scripts/webkitpy/layout_tests/controllers/manager_unittest.py')
-rw-r--r--Tools/Scripts/webkitpy/layout_tests/controllers/manager_unittest.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/Tools/Scripts/webkitpy/layout_tests/controllers/manager_unittest.py b/Tools/Scripts/webkitpy/layout_tests/controllers/manager_unittest.py
index 63e18ac8a..3ddab8ec3 100644
--- a/Tools/Scripts/webkitpy/layout_tests/controllers/manager_unittest.py
+++ b/Tools/Scripts/webkitpy/layout_tests/controllers/manager_unittest.py
@@ -32,6 +32,7 @@
import StringIO
import sys
+import time
import unittest
from webkitpy.common.system.filesystem_mock import MockFileSystem
@@ -326,6 +327,21 @@ class ManagerTest(unittest.TestCase):
manager = get_manager_with_tests(['http\\tests\\mime'])
self.assertTrue(manager.needs_servers())
+ 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())
+
class NaturalCompareTest(unittest.TestCase):
def assert_cmp(self, x, y, result):