diff options
| author | ruki <[email protected]> | 2026-02-06 00:39:29 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2026-02-06 00:39:29 +0800 |
| commit | 6f6de142f94b438c36308f7ad774a9ca7a2c945a (patch) | |
| tree | 6aaf0105b3aae50b8db9512092a58343215ad4ea | |
| parent | 330cd8afb5441ae548be970f2b248feb8b3d4340 (diff) | |
improve xmake test
| -rw-r--r-- | xmake/actions/test/main.lua | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/xmake/actions/test/main.lua b/xmake/actions/test/main.lua index 4341940d2..9162da829 100644 --- a/xmake/actions/test/main.lua +++ b/xmake/actions/test/main.lua @@ -44,13 +44,7 @@ function _load_output_files(target, files, opt) local scriptdir = target and target:scriptdir() or nil local outputs = {} for _, file in ipairs(files) do - local filepath = file - if filepath and not path.is_absolute(filepath) then - if scriptdir then - filepath = path.join(scriptdir, filepath) - end - end - filepath = path.absolute(filepath) + local filepath = path.absolute(file, scriptdir) if not os.isfile(filepath) then raise("file not found: %s", filepath) end |
