Reviewed by Eric Seidel.
[bzt] unit test ApplyPatches and ApplyAttachment
https://bugs.webkit.org/show_bug.cgi?id=31935
* Scripts/modules/commands/download.py:
* Scripts/modules/commands/download_unittest.py:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51443
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2009-11-27 Adam Barth <abarth@webkit.org>
+
+ Reviewed by Eric Seidel.
+
+ [bzt] unit test ApplyPatches and ApplyAttachment
+ https://bugs.webkit.org/show_bug.cgi?id=31935
+
+ * Scripts/modules/commands/download.py:
+ * Scripts/modules/commands/download_unittest.py:
+
2009-11-27 Adam Barth <abarth@webkit.org>
Reviewed by Eric Seidel.
sequence.run_and_handle_errors()
-# FIXME: Requires unit test. Blocking issue: WebKitApplyingScripts
class ApplyAttachment(Command):
name = "apply-attachment"
show_in_main_help = True
WebKitApplyingScripts.apply_patches_with_options(tool.scm(), [attachment], options)
-# FIXME: Requires unit test. Blocking issue: WebKitApplyingScripts
class ApplyPatches(Command):
name = "apply-patches"
show_in_main_help = True
def test_build(self):
self.assert_execute_outputs(Build(), [], options=self._default_options())
+ def test_apply_attachment(self):
+ options = self._default_options()
+ options.update = True
+ options.local_commit = True
+ self.assert_execute_outputs(ApplyAttachment(), [197], options=options)
+
+ def test_apply_patches(self):
+ options = self._default_options()
+ options.update = True
+ options.local_commit = True
+ self.assert_execute_outputs(ApplyPatches(), [42], options=options)
+
def test_land_diff(self):
self.assert_execute_outputs(LandDiff(), [42], options=self._default_options())