oscap-anaconda-addon/backport-Updated-the-build-system-to-use-pytest-for-tests.patch

29 lines
995 B
Diff

From 573440fc7dce774e1f695470b2387d84aaf85352 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Mat=C4=9Bj=20T=C3=BD=C4=8D?= <matyc@redhat.com>
Date: Thu, 21 Jun 2018 10:50:07 +0200
Subject: [PATCH] Updated the build system to use pytest for tests.
---
Makefile | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index 32a3420..4676e2e 100644
--- a/Makefile
+++ b/Makefile
@@ -88,11 +88,11 @@ test:
@find . -name '*.py' -print|xargs -n1 --max-procs=$(NUM_PROCS) pylint$(PYVERSION) -E 2> /dev/null
@echo "[ OK ]"
@echo "***Running unittests checks***"
- @PYTHONPATH=. nosetests$(PYVERSION) --processes=-1 -vw tests/
+ @PYTHONPATH=. py.test$(PYVERSION) --processes=-1 -vw tests/
runpylint:
@find . -name '*.py' -print|xargs -n1 --max-procs=$(NUM_PROCS) pylint$(PYVERSION) -E 2> /dev/null
@echo "[ OK ]"
unittest:
- PYTHONPATH=. nosetests$(PYVERSION) --processes=-1 -vw tests/
+ PYTHONPATH=. py.test$(PYVERSION) -v tests/