From 92ca9b155cd84e1b60ab6ea885f37c134df878d9 Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 16 Aug 2026 09:20:21 +0800 Subject: fix test --- tests/actions/addon/test.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/actions/addon/test.lua b/tests/actions/addon/test.lua index 74b733b21..e91c1b23f 100644 --- a/tests/actions/addon/test.lua +++ b/tests/actions/addon/test.lua @@ -46,6 +46,15 @@ end -- -- @note the recipes only point at the fixtures with `set_sourcedir`, we need not generate any payload function _with_repo(recipes, func) + + -- @note installing from a repository goes through the package manager, and it always + -- needs git, which cannot be installed on the hosts without a package manager, + -- e.g. dragonflybsd + if not find_program("git") then + print("git not found, we skip the repository tests!") + return + end + local suffix = path.filename(os.tmpfile()):gsub("[^%w]", "") local reponame = "addon-test-repo-" .. suffix local repodir = os.tmpfile() .. ".addon-repo" -- cgit v1.3.1