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
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -274,7 +274,7 @@ test: unit modules
|
||||
test -h rpmbuild/BUILD/unit-$(VERSION)/build-nodebug/$${soname} || \
|
||||
ln -fs `pwd`/$${so} rpmbuild/BUILD/unit-$(VERSION)/build-nodebug/$${soname} ; \
|
||||
done ; \
|
||||
( cd rpmbuild/BUILD/unit-$(VERSION) && rm -f build && ln -s build-nodebug build && env python3 -m pytest ) ; \
|
||||
( cd rpmbuild/BUILD/unit-$(VERSION) && rm -f build && ln -s build-nodebug build && env python3 -m pytest $(PYTEST_ARGS) ) ; \
|
||||
}
|
||||
|
||||
test-debug: unit modules
|
||||
@@ -285,7 +285,7 @@ test-debug: unit modules
|
||||
test -h rpmbuild/BUILD/unit-$(VERSION)/build-debug/$${soname} || \
|
||||
ln -fs `pwd`/$${so} rpmbuild/BUILD/unit-$(VERSION)/build-debug/$${soname} ; \
|
||||
done ; \
|
||||
( cd rpmbuild/BUILD/unit-$(VERSION) && rm -f build && ln -s build-debug build && env python3 -m pytest ) ; \
|
||||
( cd rpmbuild/BUILD/unit-$(VERSION) && rm -f build && ln -s build-debug build && env python3 -m pytest $(PYTEST_ARGS) ) ; \
|
||||
}
|
||||
|
||||
clean:
|
||||
|
||||
Reference in New Issue
Block a user