⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 94036 in webkit


Ignore:
Timestamp:
Aug 29, 2011, 6:43:57 PM (15 years ago)
Author:
commit-queue@webkit.org
Message:

sheriffbot "usage" help statements are wrong
https://bugs.webkit.org/show_bug.cgi?id=67170

Patch by Tom Zakrajsek <tomz@codeaurora.org> on 2011-08-29
Reviewed by Adam Barth.

  • Scripts/webkitpy/tool/bot/irc_command.py:
  • Scripts/webkitpy/tool/bot/irc_command_unittest.py:
  • Scripts/webkitpy/tool/bot/sheriffircbot_unittest.py:
Location:
trunk/Tools
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r94031 r94036  
     12011-08-29  Tom Zakrajsek  <tomz@codeaurora.org>
     2
     3        sheriffbot "usage" help statements are wrong
     4        https://bugs.webkit.org/show_bug.cgi?id=67170
     5
     6        Reviewed by Adam Barth.
     7
     8        * Scripts/webkitpy/tool/bot/irc_command.py:
     9        * Scripts/webkitpy/tool/bot/irc_command_unittest.py:
     10        * Scripts/webkitpy/tool/bot/sheriffircbot_unittest.py:
     11
    1122011-08-29  Adam Barth  <abarth@webkit.org>
    213
  • trunk/Tools/Scripts/webkitpy/tool/bot/irc_command.py

    r91210 r94036  
    110110        if (not svn_revision_list or not rollout_reason):
    111111            # return is equivalent to an irc().post(), but makes for easier unit testing.
    112             return "%s: Usage: SVN_REVISION [SVN_REVISIONS] REASON" % nick
     112            return "%s: Usage: rollout SVN_REVISION [SVN_REVISIONS] REASON" % nick
    113113
    114114        self._update_working_copy(tool)
     
    175175    def execute(self, nick, args, tool, sheriff):
    176176        if len(args) != 1:
    177             return "%s: Usage: BUGZILLA_EMAIL" % nick
     177            return "%s: Usage: whois BUGZILLA_EMAIL" % nick
    178178        email = args[0]
    179179        # FIXME: We should get the ContributorList off the tool somewhere.
     
    201201    def execute(self, nick, args, tool, sheriff):
    202202        if not args:
    203             return "%s: Usage: BUG_TITLE" % nick
     203            return "%s: Usage: create-bug BUG_TITLE" % nick
    204204
    205205        bug_title = " ".join(args)
  • trunk/Tools/Scripts/webkitpy/tool/bot/irc_command_unittest.py

    r91210 r94036  
    4242    def test_whois(self):
    4343        whois = Whois()
    44         self.assertEquals("tom: Usage: BUGZILLA_EMAIL",
     44        self.assertEquals("tom: Usage: whois BUGZILLA_EMAIL",
    4545                          whois.execute("tom", [], None, None))
    46         self.assertEquals("tom: Usage: BUGZILLA_EMAIL",
     46        self.assertEquals("tom: Usage: whois BUGZILLA_EMAIL",
    4747                          whois.execute("tom", ["Adam", "Barth"], None, None))
    4848        self.assertEquals("tom: Sorry, I don't know unknown@example.com. Maybe you could introduce me?",
     
    5555    def test_create_bug(self):
    5656        create_bug = CreateBug()
    57         self.assertEquals("tom: Usage: BUG_TITLE",
     57        self.assertEquals("tom: Usage: create-bug BUG_TITLE",
    5858                          create_bug.execute("tom", [], None, None))
    5959
     
    9494
    9595        # Invalid arguments result in the USAGE message.
    96         self.assertEquals("tom: Usage: SVN_REVISION [SVN_REVISIONS] REASON",
     96        self.assertEquals("tom: Usage: rollout SVN_REVISION [SVN_REVISIONS] REASON",
    9797                          rollout.execute("tom", [], None, None))
    9898
  • trunk/Tools/Scripts/webkitpy/tool/bot/sheriffircbot_unittest.py

    r90521 r94036  
    119119
    120120    def test_rollout_bananas(self):
    121         expected_stderr = "MOCK: irc.post: mock_nick: Usage: SVN_REVISION [SVN_REVISIONS] REASON\n"
     121        expected_stderr = "MOCK: irc.post: mock_nick: Usage: rollout SVN_REVISION [SVN_REVISIONS] REASON\n"
    122122        OutputCapture().assert_outputs(self, run, args=["rollout bananas"], expected_stderr=expected_stderr)
    123123
    124124    def test_rollout_invalidate_revision(self):
    125125        # When folks pass junk arguments, we should just spit the usage back at them.
    126         expected_stderr = "MOCK: irc.post: mock_nick: Usage: SVN_REVISION [SVN_REVISIONS] REASON\n"
     126        expected_stderr = "MOCK: irc.post: mock_nick: Usage: rollout SVN_REVISION [SVN_REVISIONS] REASON\n"
    127127        OutputCapture().assert_outputs(self, run,
    128128                                       args=["rollout --component=Tools 21654"],
     
    150150
    151151    def test_rollout_no_reason(self):
    152         expected_stderr = "MOCK: irc.post: mock_nick: Usage: SVN_REVISION [SVN_REVISIONS] REASON\n"
     152        expected_stderr = "MOCK: irc.post: mock_nick: Usage: rollout SVN_REVISION [SVN_REVISIONS] REASON\n"
    153153        OutputCapture().assert_outputs(self, run, args=["rollout 21654"], expected_stderr=expected_stderr)
    154154
    155155    def test_multi_rollout_no_reason(self):
    156         expected_stderr = "MOCK: irc.post: mock_nick: Usage: SVN_REVISION [SVN_REVISIONS] REASON\n"
     156        expected_stderr = "MOCK: irc.post: mock_nick: Usage: rollout SVN_REVISION [SVN_REVISIONS] REASON\n"
    157157        OutputCapture().assert_outputs(self, run, args=["rollout 21654 21655 r21656"], expected_stderr=expected_stderr)
Note: See TracChangeset for help on using the changeset viewer.