aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/luarocks/test/busted.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/luarocks/test/busted.lua b/src/luarocks/test/busted.lua
index a3aaed08..c27c449c 100644
--- a/src/luarocks/test/busted.lua
+++ b/src/luarocks/test/busted.lua
@@ -31,7 +31,11 @@ function busted.run_tests(test, args)
31 busted_exe = test.busted_executable 31 busted_exe = test.busted_executable
32 else 32 else
33 busted_exe = dir.path(path.root_dir(where), "bin", "busted") 33 busted_exe = dir.path(path.root_dir(where), "bin", "busted")
34 if not fs.exists(busted_exe) then 34
35 -- Windows fallback
36 local busted_bat = dir.path(path.root_dir(where), "bin", "busted.bat")
37
38 if not fs.exists(busted_exe) and not fs.exists(busted_bat) then
35 return nil, "'busted' executable failed to be installed" 39 return nil, "'busted' executable failed to be installed"
36 end 40 end
37 end 41 end