diff options
Diffstat (limited to 'spec/unit/sysdetect_spec.lua')
-rw-r--r-- | spec/unit/sysdetect_spec.lua | 10 |
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 | ||
5 | describe("luarocks.core.sysdetect #unix #unit", function() | 5 | describe("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 = { |