Skip to content

Commit 85eb8ad

Browse files
committed
Drop make test-local; add PYTESTS configuration var
1 parent 5e4def7 commit 85eb8ad

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

Makefile

+3-6
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ DIST_BASE_URL ?= https://archive.apache.org/dist/kafka/
1010
# The values here are taken from the 2.4.0 release.
1111
export KAFKA_JVM_PERFORMANCE_OPTS=-server -XX:+UseG1GC -XX:MaxGCPauseMillis=20 -XX:InitiatingHeapOccupancyPercent=35 -XX:+ExplicitGCInvokesConcurrent -Djava.awt.headless=true -Djava.security.manager=allow
1212

13+
PYTESTS ?= 'test'
14+
1315
setup:
1416
pip install -r requirements-dev.txt
1517
pip install -Ue .
@@ -18,12 +20,7 @@ lint:
1820
pylint --recursive=y --errors-only kafka test
1921

2022
test: build-integration
21-
pytest --durations=10 kafka test
22-
23-
# Test using pytest directly if you want to use local python. Useful for other
24-
# platforms that require manual installation for C libraries, ie. Windows.
25-
test-local: build-integration
26-
pytest --pylint --pylint-rcfile=pylint.rc --pylint-error-types=EF $(TEST_FLAGS) kafka test
23+
pytest --durations=10 $(PYTESTS)
2724

2825
cov-local: build-integration
2926
pytest --pylint --pylint-rcfile=pylint.rc --pylint-error-types=EF --cov=kafka \

0 commit comments

Comments
 (0)