1
0
mirror of https://github.com/containers/ramalama.git synced 2026-02-05 06:46:39 +01:00

Reuse code for unit test execution rules

Signed-off-by: Sergio Arroutbi <sarroutb@redhat.com>
This commit is contained in:
Sergio Arroutbi
2025-06-18 18:06:10 +02:00
parent 9df9532ed4
commit ce24886c1d

View File

@@ -9,6 +9,7 @@ DESTDIR ?= /
PATH := $(PATH):$(HOME)/.local/bin
IMAGE ?= ramalama
PYTHON_FILES := $(shell find . -path "./.venv" -prune -o -name "*.py" -print) $(shell find . -name ".venv" -prune -o -type f -perm +111 -exec grep -l "^\#!/usr/bin/env python3" {} \; 2>/dev/null || true)
PYTEST_COMMON_CMD ?= PYTHONPATH=. pytest test/unit/ -vv
default: help
@@ -166,11 +167,11 @@ ci:
.PHONY: unit-tests
unit-tests:
PYTHONPATH=. pytest test/unit/ -vv
$(PYTEST_COMMON_CMD)
.PHONY: unit-tests-verbose
unit-tests-verbose:
PYTHONPATH=. pytest test/unit/ -vv --full-trace --capture=tee-sys
$(PYTEST_COMMON_CMD) --full-trace --capture=tee-sys
.PHONY: cov-run
cov-run: install-cov-requirements