aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/luarocks/test.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/luarocks/test.lua b/src/luarocks/test.lua
index 2a836671..d074b950 100644
--- a/src/luarocks/test.lua
+++ b/src/luarocks/test.lua
@@ -77,7 +77,11 @@ function test.run_test_suite(rockspec_arg, test_type, args, prepare)
77 end 77 end
78 78
79 if prepare then 79 if prepare then
80 return test_mod.run_tests(rockspec_arg, {"--version"}) 80 if test_type == "busted" then
81 return test_mod.run_tests(rockspec_arg, {"--version"})
82 else
83 return true
84 end
81 else 85 else
82 local flags = rockspec.test and rockspec.test.flags 86 local flags = rockspec.test and rockspec.test.flags
83 if type(flags) == "table" then 87 if type(flags) == "table" then