Skip to content

Commit 0254480

Browse files
rebtooropenshift-merge-bot[bot]
authored andcommitted
Add logging for setup_tests and setup_molecule targets in Makefile
In order to debug weird behaviors during CI jobs, it's useful to have logs for those targets.
1 parent 917014b commit 0254480

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ new_role: create_new_role role_molecule ## Create a new Ansible role and related
5353
##@ Setup steps
5454
.PHONY: setup_tests
5555
setup_tests: ## Setup the environment
56-
bash scripts/setup_env
56+
bash scripts/setup_env 2>&1 | tee $(LOG_DIR)/setup_env.log
5757

5858
.PHONY: setup_molecule
5959
setup_molecule: setup_tests ## Setup molecule environment
60-
bash scripts/setup_molecule
60+
bash scripts/setup_molecule 2>&1 | tee $(LOG_DIR)/setup_molecule.log
6161

6262
##@ General testing
6363
.PHONY: tests

0 commit comments

Comments
 (0)