From 51b0488e66125b899140448436db8722d1861cd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Walstr=C3=B6m?= Date: Wed, 11 Feb 2026 08:28:15 +0100 Subject: [PATCH] test: Return fail if `make test` fails $? needs to be $$? inside a make rule to expand the bash variable. --- test/test.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test.mk b/test/test.mk index fe440d8c..9ff8d4c5 100644 --- a/test/test.mk +++ b/test/test.mk @@ -30,7 +30,7 @@ endif test: $(test-dir)/env -r $(base) $(mode) $(binaries) $(pkg-$(ARCH)) \ - sh -c '$(ninepm) -v $(TESTS); rc=$?; \ + sh -c '$(ninepm) -v $(TESTS); rc=$$?; \ $(ninepm_report) github $(test-dir)/.log/last/result.json; \ $(ninepm_report) asciidoc $(test-dir)/.log/last/result.json; \ chmod -R 777 $(test-dir)/.log; \