mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-06 12:01:40 +08:00
Bug: 1292013 Change-Id: Idf2e5de0b6ca3a296e5efd7952911783d6005e30 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3484196 Reviewed-by: Tim Van der Lippe <tvanderlippe@chromium.org> Commit-Queue: Liviu Rau <liviurau@chromium.org>
25 lines
723 B
Python
25 lines
723 B
Python
#!/usr/bin/env vpython3
|
|
#
|
|
# Copyright 2019 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.
|
|
"""
|
|
Run unit tests on a pinned version of chrome after automatically compiling the required files
|
|
"""
|
|
|
|
import argparse
|
|
import subprocess
|
|
import sys
|
|
from os import path
|
|
|
|
ROOT_DIRECTORY = path.join(path.dirname(path.abspath(__file__)), '..', '..')
|
|
|
|
|
|
def recompile(ninja_build_name, ninja_target_name):
|
|
ninja_proc = subprocess.Popen(['autoninja', '-C', 'out/{}'.format(ninja_build_name), ninja_target_name], cwd=ROOT_DIRECTORY)
|
|
|
|
ninja_proc.communicate()
|
|
|
|
if ninja_proc.returncode != 0:
|
|
sys.exit(ninja_proc.returncode)
|