1
0
Fork 0
mirror of https://github.com/JasonN3/build-container-installer.git synced 2025-12-25 10:57:55 +01:00

set vars in call

This commit is contained in:
Jason N. 2024-03-07 16:38:30 -05:00
parent e70766ac9c
commit 278f2e7ed1

View file

@ -194,8 +194,6 @@ test-iso:
$(eval _TESTS = $(filter-out README.md,$(shell ls tests/iso)))
$(eval _VARS = VERSION FLATPAK_REMOTE_NAME _FLATPAK_REPO_URL)
export $(foreach var,$(_VARS),$(var)=$($(var)))
sudo apt-get update
sudo apt-get install -y squashfs-tools
sudo modprobe loop
@ -204,7 +202,10 @@ test-iso:
sudo mount -t squashfs -o loop /mnt/iso/images/install.img /mnt/install
chmod +x $(foreach test,$(_TESTS),tests/iso/$(test))
for test in $(_TESTS); do ./tests/iso/$${test}; done
for test in $(_TESTS); \
do \
$(foreach var,$(_VARS),$(var)=$($(var))) ./tests/iso/$${test}; \
done
# Cleanup
sudo umount /mnt/install