| Index: third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_cl_unittest.py
|
| diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_cl_unittest.py b/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_cl_unittest.py
|
| index a748e3705c276a138b7c96ce78a94fefcc7b721c..d8b525028158b162bf864876649d0473392c12b5 100644
|
| --- a/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_cl_unittest.py
|
| +++ b/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_cl_unittest.py
|
| @@ -299,3 +299,12 @@ class RebaselineCLTest(BaseTestCase, LoggingTestCase):
|
| 'Try starting a new job for MOCK Try Win by running :\n'
|
| ' git cl try -b MOCK Try Win\n'
|
| ])
|
| +
|
| + def test_bails_when_there_are_unstaged_baselines(self):
|
| + scm = self.tool.scm()
|
| + scm.unstaged_changes = lambda: {'third_party/WebKit/LayoutTests/my-test-expected.txt': '?'}
|
| + self.command.execute(self.command_options(issue=11112222), [], self.tool)
|
| + self.assertLog([
|
| + 'ERROR: Aborting: there are unstaged baselines:\n',
|
| + 'ERROR: /mock-checkout/third_party/WebKit/LayoutTests/my-test-expected.txt\n',
|
| + ])
|
|
|