|
Lines 6206-6215
class TestCanonicalize(BuildStepMixinAdditions, unittest.TestCase):
a/Tools/CISupport/ews-build/steps_unittest.py_sec1
|
| 6206 |
def tearDown(self): |
6206 |
def tearDown(self): |
| 6207 |
return self.tearDownBuildStep() |
6207 |
return self.tearDownBuildStep() |
| 6208 |
|
6208 |
|
| 6209 |
def test_skipped_patch(self): |
6209 |
def test_patch(self): |
| 6210 |
self.setupStep(Canonicalize()) |
6210 |
self.setupStep(Canonicalize()) |
| 6211 |
self.setProperty('patch_id', '1234') |
6211 |
self.setProperty('patch_id', '1234') |
| 6212 |
self.expectOutcome(result=SKIPPED, state_string='Canonicalize Commit (skipped)') |
6212 |
|
|
|
6213 |
self.expectRemoteCommands( |
| 6214 |
ExpectShell( |
| 6215 |
workdir='wkdir', |
| 6216 |
timeout=300, |
| 6217 |
logEnviron=False, |
| 6218 |
command=['git', 'pull', 'origin', 'main', '--rebase'], |
| 6219 |
) + 0, ExpectShell( |
| 6220 |
workdir='wkdir', |
| 6221 |
timeout=300, |
| 6222 |
logEnviron=False, |
| 6223 |
command=['git', 'checkout', 'main'], |
| 6224 |
) + 0, ExpectShell( |
| 6225 |
workdir='wkdir', |
| 6226 |
timeout=300, |
| 6227 |
logEnviron=False, |
| 6228 |
command=['python3', 'Tools/Scripts/git-webkit', 'canonicalize', '-n', '1'], |
| 6229 |
) + 0, |
| 6230 |
) |
| 6231 |
self.expectOutcome(result=SUCCESS, state_string='Canonicalized commit') |
| 6213 |
return self.runStep() |
6232 |
return self.runStep() |
| 6214 |
|
6233 |
|
| 6215 |
def test_success(self): |
6234 |
def test_success(self): |
| 6216 |
- |
|
|