diff options
author | Eric Boren <borenet@google.com> | 2017-09-15 08:35:31 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-09-15 13:44:14 +0000 |
commit | 053d7a43e5f9b799ce32cbaee22aaf97ac65c925 (patch) | |
tree | 1437ddb0ba273f1951d034565748311e7e33765b /infra/bots/recipes/test.py | |
parent | 73fd0d6418844fe8255798708d2af50c31824ad2 (diff) |
[infra] Add internal_bot_id flag to recipes
Allows differentiation between internal bots in recipes.
Bug: skia:
Change-Id: I7130f2adc13dd01f7572856ea64c428a6adf56ba
Reviewed-on: https://skia-review.googlesource.com/46844
Reviewed-by: Kevin Lubick <kjlubick@google.com>
Commit-Queue: Eric Boren <borenet@google.com>
Diffstat (limited to 'infra/bots/recipes/test.py')
-rw-r--r-- | infra/bots/recipes/test.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/infra/bots/recipes/test.py b/infra/bots/recipes/test.py index d58bb036f3..8f60e8150b 100644 --- a/infra/bots/recipes/test.py +++ b/infra/bots/recipes/test.py @@ -232,6 +232,10 @@ def dm_flags(api, bot): configs = [c for c in configs if c == 'gl' or c == 'gles'] args.extend(['--pr', 'ccpr']) + # Bogus test for internal bot. + if api.vars.internal_bot_id == '0': + args.append('--internal0') + args.append('--config') args.extend(configs) @@ -1085,3 +1089,22 @@ def GenTests(api): api.step_data('pull /sdcard/revenge_of_the_skiabot/dm_out '+ '[CUSTOM_[SWARM_OUT_DIR]]/dm', retcode=1) ) + + yield ( + api.test('internal_bot') + + api.properties(buildername=builder, + revision='abc123', + path_config='kitchen', + swarm_out_dir='[SWARM_OUT_DIR]', + internal_bot_id='0') + + api.path.exists( + api.path['start_dir'].join('skia'), + api.path['start_dir'].join('skia', 'infra', 'bots', 'assets', + 'skimage', 'VERSION'), + api.path['start_dir'].join('skia', 'infra', 'bots', 'assets', + 'skp', 'VERSION'), + api.path['start_dir'].join('skia', 'infra', 'bots', 'assets', + 'svg', 'VERSION'), + api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt') + ) + ) |