blob: c8408d7431eb630f3ac4fa43c9b2506a55cfd6eb [file] [log] [blame]
# Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from recipe_engine import post_process
DEPS = [
'chromium',
'chromium_swarming',
'recipe_engine/properties',
'recipe_engine/runtime',
]
def RunSteps(api):
api.chromium.set_config('android', TARGET_PLATFORM='android')
api.chromium_swarming.configure_swarming(
'chromium',
precommit=api.properties['precommit'],
default_priority=api.properties.get('default_priority'))
def GenTests(api):
yield (
api.test('precommit_cq') +
api.properties(
precommit=True,
patch_project='chromium',
requester='commit-bot@chromium.org',
blamelist=['some-user@chromium.org']) +
api.post_process(post_process.DropExpectation)
)
yield (
api.test('precommit_manual') +
api.properties(precommit=True, patch_project='chromium') +
api.post_process(post_process.DropExpectation)
)
yield (
api.test('postcommit') +
api.properties(precommit=False) +
api.post_process(post_process.DropExpectation)
)
yield (
api.test('experimental') +
api.properties(precommit=False) +
api.runtime(is_luci=False, is_experimental=True) +
api.post_process(post_process.DropExpectation))
yield (
api.test('luci') +
api.properties(precommit=False) +
api.runtime(is_luci=True, is_experimental=False) +
api.post_process(post_process.DropExpectation))
yield (
api.test('default_priority') +
api.properties(precommit=False, default_priority=10) +
api.runtime(is_luci=True, is_experimental=False) +
api.post_process(post_process.DropExpectation))