From 98c8ec138a895b02cadf029871b7466b4699f2a3 Mon Sep 17 00:00:00 2001 From: Stefan Reimer Date: Thu, 24 Feb 2022 11:53:29 +0100 Subject: [PATCH] Feat: Execute tests via docker run rather than at the end of the test build process --- podman.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/podman.mk b/podman.mk index 6f2bdcd..9435847 100644 --- a/podman.mk +++ b/podman.mk @@ -19,7 +19,8 @@ build: test: build rm-test-image @test -f Dockerfile.test && \ - docker build --rm -t $(IMAGE):$(TAG)-test --from=$(IMAGE):$(TAG) -f Dockerfile.test . || \ + { docker build --rm -t $(IMAGE):$(TAG)-test --from=$(IMAGE):$(TAG) -f Dockerfile.test . && \ + docker run --rm --env-host -t $(IMAGE):$(TAG)-test; } || \ echo "No Dockerfile.test found, skipping test" scan: build