From 80bc34b371de494d352c73f7edda2d6763d9647b Mon Sep 17 00:00:00 2001 From: Dimitri Fontaine Date: Wed, 11 Sep 2024 15:45:18 +0200 Subject: [PATCH] Add `make attach` to tests using a docker volume. This runs an interactive docker container (bash) with the volume mounted for exploration / debug / inspect. --- tests/follow-9.6/Makefile | 3 +++ tests/follow-data-only/Makefile | 3 +++ tests/follow-wal2json/Makefile | 3 +++ 3 files changed, 9 insertions(+) diff --git a/tests/follow-9.6/Makefile b/tests/follow-9.6/Makefile index 17829cc11..61c02d104 100644 --- a/tests/follow-9.6/Makefile +++ b/tests/follow-9.6/Makefile @@ -30,4 +30,7 @@ CLEANUP = make -f /var/lib/postgres/cleanup.mk fix-volumes: docker run --rm -it $(OPTS) $(CNAME) $(CLEANUP) +attach: + docker run --rm -it $(OPTS) $(CNAME) bash + .PHONY: run down build test fix-volumes diff --git a/tests/follow-data-only/Makefile b/tests/follow-data-only/Makefile index c43a65e6d..b6e799fc2 100644 --- a/tests/follow-data-only/Makefile +++ b/tests/follow-data-only/Makefile @@ -27,4 +27,7 @@ CLEANUP = make -f /var/lib/postgres/cleanup.mk fix-volumes: docker run --rm -it $(OPTS) $(CNAME) $(CLEANUP) +attach: + docker run --rm -it $(OPTS) $(CNAME) bash + .PHONY: run down build test fix-volumes diff --git a/tests/follow-wal2json/Makefile b/tests/follow-wal2json/Makefile index f8c7dc516..b27bf12f2 100644 --- a/tests/follow-wal2json/Makefile +++ b/tests/follow-wal2json/Makefile @@ -27,4 +27,7 @@ CLEANUP = make -f /var/lib/postgres/cleanup.mk fix-volumes: docker run --rm -it $(OPTS) $(CNAME) $(CLEANUP) +attach: + docker run --rm -it $(OPTS) $(CNAME) bash + .PHONY: run down build test fix-volumes