GRM-20: Use CURDIR for molecule base path to fix scenario loop
The molecule target iterates through 7 scenarios. The previous relative cd into ansible/roles/gitea-runner failed after the first iteration because the shell was already inside that directory. Using $(CURDIR) ensures each loop iteration starts from the project root.
This commit is contained in:
@@ -87,7 +87,7 @@ pytest-cov:
|
||||
$(BIN)/pytest tests/unit/ -v --cov=src/gitea_runner_manager --cov-report=term-missing --cov-fail-under=100
|
||||
|
||||
MOLECULE := $(realpath $(BIN))/molecule
|
||||
MOLECULE_BASE := cd ansible/roles/gitea-runner && ANSIBLE_ALLOW_BROKEN_CONDITIONALS=true $(MOLECULE)
|
||||
MOLECULE_BASE := cd $(CURDIR)/ansible/roles/gitea-runner && ANSIBLE_ALLOW_BROKEN_CONDITIONALS=true $(MOLECULE)
|
||||
|
||||
# Quick local test: Ubuntu 22.04 only
|
||||
molecule:
|
||||
|
||||
Reference in New Issue
Block a user