[PATCH] test: test/data present with external build

5 views
Skip to first unread message

Stefano Babic

unread,
Jan 16, 2026, 5:11:08 AMJan 16
to swup...@googlegroups.com, Stefano Babic
Setting external build, tests failed because data directory does not
exist. Be sure that is generated before creating the data.

This issue is not present if O= is not set.

Reference:

https://github.com/sbabic/swupdate/actions/runs/21022677937/job/60440348084

Signed-off-by: Stefano Babic <stefan...@swupdate.org>
---
test/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/Makefile b/test/Makefile
index 8bdf50d6..0b6e3049 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -120,7 +120,7 @@ TOKEN_AES_IV := c1f390d21dd06118cbd333144a3318ca

.INTERMEDIATE: $(DATADIR)/softshm
$(DATADIR)/softshm: export SOFTHSM2_CONF=$(DATADIR)/token/softhsm.conf
-$(DATADIR)/softshm: $(DATADIR)/token/softhsm.conf
+$(DATADIR)/softshm: $(DATADIR)/token/softhsm.conf PREPARE_DATA
$(if $(Q),@echo " INIT $@")
$(Q)rm -rf $(DATADIR)/token/*/

--
2.43.0

Reply all
Reply to author
Forward
0 new messages