| Index: scripts/slave/recipes/run_presubmit.py
|
| diff --git a/scripts/slave/recipes/run_presubmit.py b/scripts/slave/recipes/run_presubmit.py
|
| index ee92b65d9420c959fe2951029dce3c1d6d4b30a7..5ff05cb9bbcc06a905ab3d60a65940e1f925b525 100644
|
| --- a/scripts/slave/recipes/run_presubmit.py
|
| +++ b/scripts/slave/recipes/run_presubmit.py
|
| @@ -78,6 +78,8 @@ def _RunStepsInternal(api):
|
| ]
|
| else: # pragma: no cover
|
| assert False, 'patch_storage %s is not supported' % patch_storage
|
| + if api.properties.get('dry_run'):
|
| + presubmit_args.append('--dry_run')
|
|
|
| presubmit_args.extend([
|
| '--root', abs_root,
|
| @@ -135,6 +137,18 @@ def GenTests(api):
|
| )
|
|
|
| yield (
|
| + api.test('chromium_dry_run') +
|
| + api.properties.tryserver(
|
| + mastername='tryserver.chromium.linux',
|
| + buildername='chromium_presubmit',
|
| + repo_name='chromium',
|
| + patch_project='chromium',
|
| + dry_run=True) +
|
| + api.step_data('presubmit', api.json.output([['chromium_presubmit',
|
| + ['compile']]]))
|
| + )
|
| +
|
| + yield (
|
| api.test('chromium_with_auth') +
|
| api.properties.tryserver(
|
| mastername='tryserver.chromium.linux',
|
|
|