Fix Makefile build-arch target to use a single shell and correctly pass BASE_IMAGE_arch to docker build.
Reference: https://chatgpt.com/share/6936c5f9-5064-800f-8597-1cf3ccf7f42b
This commit is contained in:
9
Makefile
9
Makefile
@@ -71,12 +71,19 @@ build:
|
|||||||
-t "package-manager-test-$$distro" . || exit $$?; \
|
-t "package-manager-test-$$distro" . || exit $$?; \
|
||||||
done
|
done
|
||||||
|
|
||||||
|
build-arch:
|
||||||
|
@base_image="$(BASE_IMAGE_arch)"; \
|
||||||
|
echo "Building test image 'package-manager-test-arch' (BASE_IMAGE=$$base_image)..."; \
|
||||||
|
docker build \
|
||||||
|
--build-arg BASE_IMAGE="$$base_image" \
|
||||||
|
-t "package-manager-test-arch" . || exit $$?;
|
||||||
|
|
||||||
# ------------------------------------------------------------
|
# ------------------------------------------------------------
|
||||||
# Test targets
|
# Test targets
|
||||||
# ------------------------------------------------------------
|
# ------------------------------------------------------------
|
||||||
|
|
||||||
# Unit tests: only in Arch container (fastest feedback)
|
# Unit tests: only in Arch container (fastest feedback)
|
||||||
test-unit: build
|
test-unit: build-arch
|
||||||
@echo "============================================================"
|
@echo "============================================================"
|
||||||
@echo ">>> Running UNIT tests in Arch container"
|
@echo ">>> Running UNIT tests in Arch container"
|
||||||
@echo "============================================================"
|
@echo "============================================================"
|
||||||
|
|||||||
Reference in New Issue
Block a user