summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZachary Michaels <[email protected]>2023-10-29 12:04:17 -0700
committerZachary Michaels <[email protected]>2023-10-29 12:04:17 -0700
commite99d51f3454f0eda98bbf7ffbac0328f9be0a6b0 (patch)
tree173062b2dbd13291fbce5c0c6ac15e38528d0e71
parentfb47c199a92c1f2f19e6b38686c4a69fd5af667a (diff)
Tests: fix build failure early out
-rw-r--r--xmake/actions/test/main.lua4
1 files 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