summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJoseph Mingrone <Jehops@users.noreply.github.com>2022-10-14 14:22:20 -0300
committerGitHub <noreply@github.com>2022-10-14 12:22:20 -0500
commitc419465f42e53e3c7dee3d030c0f85a86e257267 (patch)
treece5cbdf15fdd544cafd968f2b6b68bc30b084695 /Makefile
parent74804475c145d0e22c10ff4cf70f011058633707 (diff)
downloadcloud-init-git-c419465f42e53e3c7dee3d030c0f85a86e257267.tar.gz
Remove hardcoding and unnecessary overrides in Makefile (#1783)
Do not override existing value for PYTHON and do not hardcode the binary in unittest target.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 2acf132e..4f5dd405 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@ VARIANT ?= ubuntu
YAML_FILES=$(shell find cloudinit tests tools -name "*.yaml" -type f )
YAML_FILES+=$(shell find doc/examples -name "cloud-config*.txt" -type f )
-PYTHON = python3
+PYTHON ?= python3
NUM_ITER ?= 100
@@ -29,7 +29,7 @@ flake8:
@$(CWD)/tools/run-flake8
unittest: clean_pyc
- python3 -m pytest -v tests/unittests cloudinit
+ $(PYTHON) -m pytest -v tests/unittests cloudinit
render-template:
$(PYTHON) ./tools/render-cloudcfg --variant=$(VARIANT) $(FILE) $(subst .tmpl,,$(FILE))