mirror of
https://github.com/rust-vmm/rust-vmm-ci.git
synced 2026-08-05 03:08:31 +00:00
Enable rust-vmm coverage test in CI
1. Enabled the aarch64 coverage test in `test_coverage` script. 2. Seperated the coverage json sample file to two sample files for different machine achitectures. 3. Updated Buildkite pipeline container version. 4. Updated README for the description of coverage files and container version. Signed-off-by: Henry Wang <henry.wang@arm.com>
This commit is contained in:
committed by
Andreea Florescu
parent
c309d0627b
commit
cd7096e7a6
@@ -2,14 +2,16 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
"""Test the coverage and update the threshold when coverage is increased."""
|
||||
|
||||
import json, os, re, shutil, subprocess
|
||||
import json, os, re, shutil, subprocess, platform
|
||||
import pytest
|
||||
|
||||
from utils import get_repo_root_path
|
||||
|
||||
REPO_ROOT_PATH = get_repo_root_path()
|
||||
COVERAGE_CONFIG_PATH = os.path.join(REPO_ROOT_PATH, "coverage_config.json")
|
||||
|
||||
if platform.machine() == "x86_64":
|
||||
COVERAGE_CONFIG_PATH = os.path.join(REPO_ROOT_PATH, "coverage_config_x86_64.json")
|
||||
elif platform.machine() == "aarch64":
|
||||
COVERAGE_CONFIG_PATH = os.path.join(REPO_ROOT_PATH, "coverage_config_aarch64.json")
|
||||
|
||||
def _read_test_config():
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user