Files
chromium_depot_tools/tests/recipes_test.py
Anthony Polito af6bc7c015 add vpython3 to tests that run under vpython3
Change-Id: I51aece95bed6d32faf6f3f93591a7bdf459b3edc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3291901
Auto-Submit: Anthony Polito <apolito@google.com>
Reviewed-by: Josip Sokcevic <sokcevic@google.com>
Commit-Queue: Josip Sokcevic <sokcevic@google.com>
2021-11-18 21:43:40 +00:00

22 lines
515 B
Python
Executable File

#!/usr/bin/env vpython3
# Copyright (c) 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Runs simulation tests and lint on the recipes."""
import os
import subprocess
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_py('test', 'run')
recipes_py('lint')