|
@@ -3706,25 +3706,6 @@ class ChangelistTest(unittest.TestCase):
|
|
'--json_output', '/tmp/fake-temp2',
|
|
'--json_output', '/tmp/fake-temp2',
|
|
'--description_file', '/tmp/fake-temp1',
|
|
'--description_file', '/tmp/fake-temp1',
|
|
])
|
|
])
|
|
- subprocess2.Popen.assert_any_call([
|
|
|
|
- 'vpython', 'PRESUBMIT_SUPPORT',
|
|
|
|
- '--root', 'root',
|
|
|
|
- '--upstream', 'upstream',
|
|
|
|
- '--verbose', '--verbose',
|
|
|
|
- '--gerrit_url', 'https://chromium-review.googlesource.com',
|
|
|
|
- '--gerrit_project', 'project',
|
|
|
|
- '--gerrit_branch', 'refs/heads/main',
|
|
|
|
- '--author', 'author',
|
|
|
|
- '--issue', '123456',
|
|
|
|
- '--patchset', '7',
|
|
|
|
- '--commit',
|
|
|
|
- '--may_prompt',
|
|
|
|
- '--parallel',
|
|
|
|
- '--all_files',
|
|
|
|
- '--no_diffs',
|
|
|
|
- '--json_output', '/tmp/fake-temp4',
|
|
|
|
- '--description_file', '/tmp/fake-temp3',
|
|
|
|
- ])
|
|
|
|
gclient_utils.FileWrite.assert_any_call(
|
|
gclient_utils.FileWrite.assert_any_call(
|
|
'/tmp/fake-temp1', 'description')
|
|
'/tmp/fake-temp1', 'description')
|
|
metrics.collector.add_repeated('sub_commands', {
|
|
metrics.collector.add_repeated('sub_commands', {
|
|
@@ -3896,31 +3877,6 @@ class ChangelistTest(unittest.TestCase):
|
|
cl = git_cl.Changelist()
|
|
cl = git_cl.Changelist()
|
|
cl.RunPostUploadHook(2, 'upstream', 'description', False)
|
|
cl.RunPostUploadHook(2, 'upstream', 'description', False)
|
|
|
|
|
|
- subprocess2.Popen.assert_any_call([
|
|
|
|
- 'vpython',
|
|
|
|
- 'PRESUBMIT_SUPPORT',
|
|
|
|
- '--root',
|
|
|
|
- 'root',
|
|
|
|
- '--upstream',
|
|
|
|
- 'upstream',
|
|
|
|
- '--verbose',
|
|
|
|
- '--verbose',
|
|
|
|
- '--gerrit_url',
|
|
|
|
- 'https://chromium-review.googlesource.com',
|
|
|
|
- '--gerrit_project',
|
|
|
|
- 'project',
|
|
|
|
- '--gerrit_branch',
|
|
|
|
- 'refs/heads/main',
|
|
|
|
- '--author',
|
|
|
|
- 'author',
|
|
|
|
- '--issue',
|
|
|
|
- '123456',
|
|
|
|
- '--patchset',
|
|
|
|
- '7',
|
|
|
|
- '--post_upload',
|
|
|
|
- '--description_file',
|
|
|
|
- '/tmp/fake-temp1',
|
|
|
|
- ])
|
|
|
|
subprocess2.Popen.assert_called_with([
|
|
subprocess2.Popen.assert_called_with([
|
|
'vpython3',
|
|
'vpython3',
|
|
'PRESUBMIT_SUPPORT',
|
|
'PRESUBMIT_SUPPORT',
|