Support recipes_test.py in non-git workspace

Providing --package flag allows recipes.py to skip git calls it makes
to find repo root.

Bug: b/323243527
Change-Id: If507fbf15459d7ea73670df202e16c344f9467a8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/5263441
Commit-Queue: Gavin Mak <gavinmak@google.com>
Reviewed-by: Josip Sokcevic <sokcevic@chromium.org>
changes/41/5263441/10
Gavin Mak 1 year ago committed by LUCI CQ
parent 03821aea69
commit 7b4fb3d22d

@ -12,8 +12,9 @@ ROOT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
def recipes_py(*args):
subprocess.check_call([os.path.join(ROOT_DIR, 'recipes', 'recipes.py')] +
list(args))
recipes_cfg_path = os.path.join(ROOT_DIR, 'infra', 'config', 'recipes.cfg')
subprocess.check_call([os.path.join(ROOT_DIR, 'recipes', 'recipes.py'),
'--package', recipes_cfg_path] + list(args))
recipes_py('test', 'run')

Loading…
Cancel
Save