From 8973dc488b06ed2d388e1e1885af04bc593e98a1 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Wed, 4 Feb 2026 10:47:15 +0100 Subject: [PATCH] test: ensure result of tests is the exit code of the rule Signed-off-by: Joachim Wiberg --- test/test.mk | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/test.mk b/test/test.mk index 0e8c528f..fe440d8c 100644 --- a/test/test.mk +++ b/test/test.mk @@ -30,10 +30,11 @@ endif test: $(test-dir)/env -r $(base) $(mode) $(binaries) $(pkg-$(ARCH)) \ - sh -c '$(ninepm) -v $(TESTS); \ - $(ninepm_report) github $(test-dir)/.log/last/result.json; \ + 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' + chmod -R 777 $(test-dir)/.log; \ + exit $$rc' test-sh: $(test-dir)/env $(base) $(mode) $(binaries) $(pkg-$(ARCH)) -i /bin/sh