From e99d51f3454f0eda98bbf7ffbac0328f9be0a6b0 Mon Sep 17 00:00:00 2001 From: Zachary Michaels Date: Sun, 29 Oct 2023 12:04:17 -0700 Subject: Tests: fix build failure early out --- xmake/actions/test/main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xmake/actions/test/main.lua b/xmake/actions/test/main.lua index 5059140bb..dfbc04038 100644 --- a/xmake/actions/test/main.lua +++ b/xmake/actions/test/main.lua @@ -35,8 +35,8 @@ import("actions.build.main", {rootdir = os.programdir(), alias = "build_action"} function _do_test_target(target, opt) opt = opt or {} - -- test build only - if opt.build_only then + -- early out: results were computed during build + if opt.build_should_fail then return opt.passed, opt.errors end -- cgit v1.3.1