From ad7c6255d503fb953e1e2da0da9ff2cbdbb32d0e Mon Sep 17 00:00:00 2001 From: Emil Simeonov Date: Fri, 19 Jun 2026 04:54:57 +0200 Subject: [PATCH] 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. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3986680..9f0954d 100644 --- a/Makefile +++ b/Makefile @@ -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: