summaryrefslogtreecommitdiff
path: root/tests/actions/addon/test.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tests/actions/addon/test.lua')
-rw-r--r--tests/actions/addon/test.lua9
1 files changed, 9 insertions, 0 deletions
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"