test: Return fail if make test fails

$? needs to be $$? inside a make rule to expand the
bash variable.
This commit is contained in:
Mattias Walström
2026-02-21 12:23:04 +01:00
parent 4aa0ab73b3
commit 51b0488e66
+1 -1
View File
@@ -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; \