mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
fba96d58c2
build: - upgrade idf-build-apps to 2.x - unify get_pytest_apps and get_cmake_apps to get_all_apps - returns (test_apps, non_test_apps) tuple - add tests for the new get_all_apps assign: - generate build report - generate target test pipeline based on the build report target test: - download artifacts from minio server - users can use `pytest --pipeline-id xxxxx` to download and flash the binaries from the artifacts .post: - generate target test reports
26 lines
867 B
Python
26 lines
867 B
Python
# SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
import os
|
|
import sys
|
|
|
|
IDF_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..', '..', '..'))
|
|
|
|
# run this scripts only in idf path, to ensure the relative path is the same
|
|
os.chdir(IDF_PATH)
|
|
|
|
if 'IDF_PATH' not in os.environ:
|
|
os.environ['IDF_PATH'] = IDF_PATH
|
|
|
|
tools_path = os.path.join(os.path.dirname(__file__), '..', '..', '..')
|
|
if tools_path not in sys.path:
|
|
sys.path.append(tools_path)
|
|
|
|
tools_ci_path = os.path.join(os.path.dirname(__file__), '..', '..')
|
|
if tools_ci_path not in sys.path:
|
|
sys.path.append(tools_ci_path)
|
|
|
|
tools_ci_python_packages_path = os.path.join(os.path.dirname(__file__), '..', '..', 'python_packages')
|
|
if tools_ci_python_packages_path not in sys.path:
|
|
sys.path.append(tools_ci_python_packages_path)
|