diff --git a/recipe_modules/infra_paths/example.expected/paths_swarmbucket_linux.json b/recipe_modules/infra_paths/example.expected/paths_swarmbucket_linux.json new file mode 100644 index 0000000000..75aa338332 --- /dev/null +++ b/recipe_modules/infra_paths/example.expected/paths_swarmbucket_linux.json @@ -0,0 +1,14 @@ +[ + { + "cmd": [], + "name": "show cache path", + "~followup_annotations": [ + "@@@STEP_TEXT@[CACHE]@@@" + ] + }, + { + "name": "$result", + "recipe_result": null, + "status_code": 0 + } +] \ No newline at end of file diff --git a/recipe_modules/infra_paths/example.expected/paths_swarmbucket_mac.json b/recipe_modules/infra_paths/example.expected/paths_swarmbucket_mac.json new file mode 100644 index 0000000000..75aa338332 --- /dev/null +++ b/recipe_modules/infra_paths/example.expected/paths_swarmbucket_mac.json @@ -0,0 +1,14 @@ +[ + { + "cmd": [], + "name": "show cache path", + "~followup_annotations": [ + "@@@STEP_TEXT@[CACHE]@@@" + ] + }, + { + "name": "$result", + "recipe_result": null, + "status_code": 0 + } +] \ No newline at end of file diff --git a/recipe_modules/infra_paths/example.expected/paths_swarmbucket_win.json b/recipe_modules/infra_paths/example.expected/paths_swarmbucket_win.json new file mode 100644 index 0000000000..75aa338332 --- /dev/null +++ b/recipe_modules/infra_paths/example.expected/paths_swarmbucket_win.json @@ -0,0 +1,14 @@ +[ + { + "cmd": [], + "name": "show cache path", + "~followup_annotations": [ + "@@@STEP_TEXT@[CACHE]@@@" + ] + }, + { + "name": "$result", + "recipe_result": null, + "status_code": 0 + } +] \ No newline at end of file diff --git a/recipe_modules/infra_paths/example.py b/recipe_modules/infra_paths/example.py index 0efa21ef05..2cca4c7911 100644 --- a/recipe_modules/infra_paths/example.py +++ b/recipe_modules/infra_paths/example.py @@ -20,7 +20,7 @@ def GenTests(api): yield api.test('basic') for platform in ('linux', 'mac', 'win'): - for path_config in ('buildbot', 'kitchen'): + for path_config in ('buildbot', 'kitchen', 'swarmbucket'): yield ( api.test('paths_%s_%s' % (path_config, platform)) + api.platform.name(platform) + diff --git a/recipe_modules/infra_paths/path_config.py b/recipe_modules/infra_paths/path_config.py index 723b5f31a9..4ec1bc7915 100644 --- a/recipe_modules/infra_paths/path_config.py +++ b/recipe_modules/infra_paths/path_config.py @@ -51,3 +51,8 @@ def infra_kitchen(c): c.base_paths['git_cache'] = c.base_paths['root'] + ('cache_dir',) for path in ('goma_cache', 'goma_deps_cache'): c.base_paths[path] = c.base_paths['cache'] + (path,) + + +@CONFIG_CTX(includes=['infra_buildbot']) +def infra_swarmbucket(c): + c.base_paths['git_cache'] = c.base_paths['root'] + ('git_cache',)