test: Remove code coverage report

Nmstate is shifting to rust which make the current code coverage test
useless, removing it.

Signed-off-by: Gris Ge <fge@redhat.com>
This commit is contained in:
Gris Ge 2022-02-24 16:38:29 +08:00
parent 4a1369b12a
commit 78f4fdb89c
3 changed files with 1 additions and 27 deletions

View File

@ -30,10 +30,6 @@ PYTEST_OPTIONS="--verbose --verbose \
--log-date-format='%Y-%m-%d %H:%M:%S' \
--log-format='%(asctime)s %(filename)s:%(lineno)d %(levelname)s %(message)s' \
--durations=5 \
--cov /usr/lib/python*/site-packages/libnmstate \
--cov /usr/lib/python*/site-packages/nmstatectl \
--cov-report=term \
--cov-report=xml \
--log-file=pytest-run.log"
NMSTATE_TEMPDIR=$(mktemp -d /tmp/nmstate-test-XXXX)
@ -127,7 +123,6 @@ function run_tests {
pytest \
$PYTEST_OPTIONS \
--junitxml=junit.integ.xml \
--cov-report=html:htmlcov-integ \
tests/integration \
${nmstate_pytest_extra_args}"
fi
@ -137,7 +132,6 @@ function run_tests {
exec_cmd "
pytest \
$PYTEST_OPTIONS \
--cov-report=html:htmlcov-integ_tier1 \
--junitxml=junit.integ_tier1.xml \
-m tier1 \
tests/integration \
@ -149,7 +143,6 @@ function run_tests {
exec_cmd "
pytest \
$PYTEST_OPTIONS \
--cov-report=html:htmlcov-integ_tier2 \
--junitxml=junit.integ_tier2.xml \
-m tier2 \
tests/integration \
@ -162,7 +155,6 @@ function run_tests {
exec_cmd "
pytest \
$PYTEST_OPTIONS \
--cov-report=html:htmlcov-integ_slow \
--junitxml=junit.integ_slow.xml \
-m slow --runslow \
tests/integration \
@ -336,19 +328,6 @@ function check_services {
'
}
function upload_coverage {
if [[ "$CI" == "true" ]] ;then
container_exec "
cd $CONTAINER_WORKSPACE &&
COVERALLS_PARALLEL=true COVERALLS_SERVICE_NAME=travis-ci coveralls
" || true
container_exec "
cd $CONTAINER_WORKSPACE &&
bash <(curl -s https://codecov.io/bash)
" || true
fi
}
function check_iface_exist {
exec_cmd "ip link | grep -q ' $1'"
}
@ -536,4 +515,3 @@ fi
install_nmstate
run_tests
upload_coverage

View File

@ -97,11 +97,9 @@ function copy_workspace_container {
function create_container {
mkdir -p $EXPORT_DIR
ci_env=`bash <(curl -s https://codecov.io/env)`
# The podman support wildcard when passing enviroments, but docker does not.
CONTAINER_ID="$(${CONTAINER_CMD} run $ci_env --privileged -d \
CONTAINER_ID="$(${CONTAINER_CMD} run --privileged -d \
-e CI \
-e COVERALLS_REPO_TOKEN \
-e SHIPPABLE \
-v /sys/fs/cgroup:/sys/fs/cgroup:ro \
-v $PROJECT_PATH:$CONTAINER_WORKSPACE \

View File

@ -31,10 +31,8 @@ RUN dnf update -y && \
iproute \
rpm-build \
python3-pytest \
python3-pytest-cov \
python3-virtualenv \
python3-tox \
python3-coveralls \
python3-requests \
python3-docopt \
python3-nispor \