mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 10:41:31 +00:00
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>
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user