summaryrefslogtreecommitdiffstats
path: root/WebKitTools/Scripts/webkitpy/tool/commands/queuestest.py
diff options
context:
space:
mode:
Diffstat (limited to 'WebKitTools/Scripts/webkitpy/tool/commands/queuestest.py')
-rw-r--r--WebKitTools/Scripts/webkitpy/tool/commands/queuestest.py16
1 files changed, 12 insertions, 4 deletions
diff --git a/WebKitTools/Scripts/webkitpy/tool/commands/queuestest.py b/WebKitTools/Scripts/webkitpy/tool/commands/queuestest.py
index 9e17c5c..aa3cef4 100644
--- a/WebKitTools/Scripts/webkitpy/tool/commands/queuestest.py
+++ b/WebKitTools/Scripts/webkitpy/tool/commands/queuestest.py
@@ -45,16 +45,20 @@ class MockQueueEngine(object):
class MockPatch():
def id(self):
- return 1234
+ return 197
def bug_id(self):
- return 345
+ return 142
+
+ def is_rollout(self):
+ return False
class QueuesTest(unittest.TestCase):
+ # Ids match patch1 in mocktool.py
mock_work_item = Attachment({
- "id": 1234,
- "bug_id": 345,
+ "id": 197,
+ "bug_id": 142,
"name": "Patch",
"attacher_email": "adam@example.com",
}, None)
@@ -71,6 +75,10 @@ class QueuesTest(unittest.TestCase):
expected_stderr=expected_stderr.get(func_name, ""),
expected_exception=exception)
+ def _default_begin_work_queue_stderr(self, name, checkout_dir):
+ string_replacements = {"name": name, 'checkout_dir': checkout_dir}
+ return "CAUTION: %(name)s will discard all local changes in \"%(checkout_dir)s\"\nRunning WebKit %(name)s.\nMOCK: update_status: %(name)s Starting Queue\n" % string_replacements
+
def assert_queue_outputs(self, queue, args=None, work_item=None, expected_stdout=None, expected_stderr=None, expected_exceptions=None, options=Mock(), tool=MockTool()):
if not expected_stdout:
expected_stdout = {}