diff options
Diffstat (limited to 'infra/bots/recipe_modules/isolate/examples/full.py')
-rw-r--r-- | infra/bots/recipe_modules/isolate/examples/full.py | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/infra/bots/recipe_modules/isolate/examples/full.py b/infra/bots/recipe_modules/isolate/examples/full.py index 7dfa009f65..b26c81c91c 100644 --- a/infra/bots/recipe_modules/isolate/examples/full.py +++ b/infra/bots/recipe_modules/isolate/examples/full.py @@ -20,12 +20,14 @@ DEPS = [ ] PROPERTIES = { - 'always_use_exparchive': Property( - kind=bool, help="Force usage of exparchive.", default=False), + 'use_exparchive': Property( + kind=int, help="Force usage of exparchive.", default=0), + 'buildnumber': Property( + kind=int, help="Number for the build.", default=100), } -def RunSteps(api, always_use_exparchive): +def RunSteps(api, use_exparchive): # 'isolate_tests' step needs swarming checkout. api.swarming_client.checkout('master') @@ -48,8 +50,7 @@ def RunSteps(api, always_use_exparchive): # None. if expected_targets is not None: api.isolate.isolate_tests( - build_path, expected_targets, - always_use_exparchive=always_use_exparchive) + build_path, expected_targets, use_exparchive=use_exparchive) def GenTests(api): @@ -141,7 +142,15 @@ def GenTests(api): # Use force-exparchive yield make_test( 'always-use-exparchive', - [], - ['test_exparchive', 'test1', 'test2'], + ['test1', 'test2'], + ['test_exparchive'], ['test_exparchive', 'test1', 'test2']) + api.properties( - always_use_exparchive=True) + use_exparchive=True) + # Use force-exparchive + for i in range(1, 11): + yield make_test( + 'use-exparchive-20percent-build%i' % i, + ['test1', 'test2'], + ['test_exparchive'], + ['test_exparchive', 'test1', 'test2']) + api.properties( + use_exparchive=20, buildnumber=i) |