|
@@ -38,7 +38,6 @@ def GenTests(api):
|
|
git_repo='https://chromium.googlesource.com/infra/infra'),
|
|
git_repo='https://chromium.googlesource.com/infra/infra'),
|
|
api.properties(run_all=True),
|
|
api.properties(run_all=True),
|
|
api.step_data('presubmit', api.json.output({})),
|
|
api.step_data('presubmit', api.json.output({})),
|
|
- api.step_data('presubmit py3', api.json.output({})),
|
|
|
|
api.post_process(post_process.StatusSuccess),
|
|
api.post_process(post_process.StatusSuccess),
|
|
api.post_process(post_process.DropExpectation),
|
|
api.post_process(post_process.DropExpectation),
|
|
)
|
|
)
|
|
@@ -145,57 +144,6 @@ def GenTests(api):
|
|
Expected "," after item in list
|
|
Expected "," after item in list
|
|
```
|
|
```
|
|
|
|
|
|
- #### To see notifications and warnings, look at the stdout of the presubmit step.
|
|
|
|
- ''').strip()) + api.post_process(post_process.DropExpectation))
|
|
|
|
- yield (
|
|
|
|
- api.test('failure py3', status="FAILURE") +
|
|
|
|
- api.runtime(is_experimental=False) +
|
|
|
|
- api.buildbucket.try_build(project='infra') + api.step_data(
|
|
|
|
- 'presubmit py3',
|
|
|
|
- api.json.output(
|
|
|
|
- {
|
|
|
|
- 'errors': [{
|
|
|
|
- 'message': 'Missing LGTM',
|
|
|
|
- 'long_text': 'Here are some suggested OWNERS: fake@',
|
|
|
|
- 'items': [],
|
|
|
|
- 'fatal': True
|
|
|
|
- }, {
|
|
|
|
- 'message': 'Syntax error in fake.py',
|
|
|
|
- 'long_text': 'Expected "," after item in list',
|
|
|
|
- 'items': [],
|
|
|
|
- 'fatal': True
|
|
|
|
- }],
|
|
|
|
- 'notifications': [{
|
|
|
|
- 'message': 'If there is a bug associated please add it.',
|
|
|
|
- 'long_text': '',
|
|
|
|
- 'items': [],
|
|
|
|
- 'fatal': False
|
|
|
|
- }],
|
|
|
|
- 'warnings': [{
|
|
|
|
- 'message': 'Line 100 has more than 80 characters',
|
|
|
|
- 'long_text': '',
|
|
|
|
- 'items': [],
|
|
|
|
- 'fatal': False
|
|
|
|
- }]
|
|
|
|
- },
|
|
|
|
- retcode=1)) + api.post_process(post_process.StatusFailure) +
|
|
|
|
- api.post_process(
|
|
|
|
- post_process.ResultReason,
|
|
|
|
- textwrap.dedent(u'''
|
|
|
|
- #### There are 2 error(s), 1 warning(s), and 1 notifications(s). Here are the errors:
|
|
|
|
-
|
|
|
|
- **ERROR**
|
|
|
|
- ```
|
|
|
|
- Missing LGTM
|
|
|
|
- Here are some suggested OWNERS: fake@
|
|
|
|
- ```
|
|
|
|
-
|
|
|
|
- **ERROR**
|
|
|
|
- ```
|
|
|
|
- Syntax error in fake.py
|
|
|
|
- Expected "," after item in list
|
|
|
|
- ```
|
|
|
|
-
|
|
|
|
#### To see notifications and warnings, look at the stdout of the presubmit step.
|
|
#### To see notifications and warnings, look at the stdout of the presubmit step.
|
|
''').strip()) + api.post_process(post_process.DropExpectation))
|
|
''').strip()) + api.post_process(post_process.DropExpectation))
|
|
|
|
|
|
@@ -291,25 +239,3 @@ def GenTests(api):
|
|
api.post_process(post_process.StatusException) +
|
|
api.post_process(post_process.StatusException) +
|
|
api.post_process(post_process.ResultReason, bug_msg) +
|
|
api.post_process(post_process.ResultReason, bug_msg) +
|
|
api.post_process(post_process.DropExpectation))
|
|
api.post_process(post_process.DropExpectation))
|
|
-
|
|
|
|
- yield (api.test('warnings-merged') + api.runtime(is_experimental=False) +
|
|
|
|
- api.buildbucket.try_build(project='infra') + api.step_data(
|
|
|
|
- 'presubmit',
|
|
|
|
- api.json.output({
|
|
|
|
- 'errors': [],
|
|
|
|
- 'notifications': [],
|
|
|
|
- 'warnings': [{
|
|
|
|
- 'message': 'warning py2'
|
|
|
|
- }]
|
|
|
|
- }),
|
|
|
|
- ) + api.step_data(
|
|
|
|
- 'presubmit py3',
|
|
|
|
- api.json.output({
|
|
|
|
- 'errors': [],
|
|
|
|
- 'extra': [],
|
|
|
|
- 'warnings': [{
|
|
|
|
- 'message': 'warning py3'
|
|
|
|
- }]
|
|
|
|
- }),
|
|
|
|
- ) + api.post_process(post_process.StatusSuccess) +
|
|
|
|
- api.post_process(post_process.DropExpectation))
|
|
|