aboutsummaryrefslogtreecommitdiff
path: root/spec/unit/sysdetect_spec.lua
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2024-02-29 00:46:06 -0300
committerHisham Muhammad <hisham@gobolinux.org>2024-02-29 15:46:16 +0000
commitf76b7a2b13e411df2e696146bb0a6396781acd92 (patch)
tree38ed32f81f05f6eacd03f36eacd5341e7b1d17dd /spec/unit/sysdetect_spec.lua
parent0ca8c460e867356342180bb625760ed9201a5503 (diff)
downloadluarocks-f76b7a2b13e411df2e696146bb0a6396781acd92.tar.gz
luarocks-f76b7a2b13e411df2e696146bb0a6396781acd92.tar.bz2
luarocks-f76b7a2b13e411df2e696146bb0a6396781acd92.zip
tests: speed up and simplify
Diffstat (limited to 'spec/unit/sysdetect_spec.lua')
-rw-r--r--spec/unit/sysdetect_spec.lua10
1 files changed, 7 insertions, 3 deletions
diff --git a/spec/unit/sysdetect_spec.lua b/spec/unit/sysdetect_spec.lua
index 6ec6f6b6..d3b16955 100644
--- a/spec/unit/sysdetect_spec.lua
+++ b/spec/unit/sysdetect_spec.lua
@@ -4,9 +4,13 @@ local lfs = require("lfs")
4 4
5describe("luarocks.core.sysdetect #unix #unit", function() 5describe("luarocks.core.sysdetect #unix #unit", function()
6 6
7 setup(function() 7 lazy_setup(function()
8 os.execute("[ -e binary-samples ] || git clone --depth=1 https://github.com/hishamhm/binary-samples") 8 os.execute([=[
9 os.execute("cd binary-samples && git pull") 9 [ -e binary-samples ] || {
10 git clone --depth=1 https://github.com/hishamhm/binary-samples
11 ( cd binary-samples && git pull )
12 }
13 ]=])
10 end) 14 end)
11 15
12 local files = { 16 local files = {