summaryrefslogtreecommitdiffhomepage
path: root/pkg/deb
diff options
context:
space:
mode:
authorAndrei Belov <defan@nginx.com>2020-12-16 09:55:59 +0300
committerAndrei Belov <defan@nginx.com>2020-12-16 09:55:59 +0300
commitd15acabfc59472457f06563a939be3c97fc6b5d9 (patch)
tree7807fb73d0f9880d7a8f08205a33ee2addcfdb34 /pkg/deb
parentea5844ae7b52969e2b404f36a6cb5577a3a447a2 (diff)
downloadunit-d15acabfc59472457f06563a939be3c97fc6b5d9.tar.gz
unit-d15acabfc59472457f06563a939be3c97fc6b5d9.tar.bz2
Packages: introduced PYTEST_ARGS env variable for test targets.
This is useful for running particular tests, e.g.: PYTEST_ARGS='test/test_respawn.py::TestRespawn::test_respawn_router' make test
Diffstat (limited to 'pkg/deb')
-rw-r--r--pkg/deb/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/deb/Makefile b/pkg/deb/Makefile
index 8a02105c..42ee1695 100644
--- a/pkg/deb/Makefile
+++ b/pkg/deb/Makefile
@@ -314,7 +314,7 @@ test: unit modules
test -h debuild/unit-$(VERSION)/debian/build-unit/build/$${soname} || \
ln -fs `pwd`/$${so} debuild/unit-$(VERSION)/debian/build-unit/build/$${soname} ; \
done ; \
- ( cd debuild/unit-$(VERSION)/debian/build-unit && env python3 -m pytest ) ; \
+ ( cd debuild/unit-$(VERSION)/debian/build-unit && env python3 -m pytest $(PYTEST_ARGS) ) ; \
}
test-debug: unit modules
@@ -325,7 +325,7 @@ test-debug: unit modules
test -h debuild/unit-$(VERSION)/debian/build-unit-debug/build/$${soname} || \
ln -fs `pwd`/$${so} debuild/unit-$(VERSION)/debian/build-unit-debug/build/$${soname} ; \
done ; \
- ( cd debuild/unit-$(VERSION)/debian/build-unit-debug && env python3 -m pytest ) ; \
+ ( cd debuild/unit-$(VERSION)/debian/build-unit-debug && env python3 -m pytest $(PYTEST_ARGS) ) ; \
}
clean: