From 3c3e48f5b3f081e3bf446c6a764b90a60293ed8e Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Mon, 30 Apr 2018 15:56:03 -0300 Subject: test.busted: add explicit fallback for finding Busted on Windows --- src/luarocks/test/busted.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) busted_exe = test.busted_executable else busted_exe = dir.path(path.root_dir(where), "bin", "busted") - if not fs.exists(busted_exe) then + + -- Windows fallback + local busted_bat = dir.path(path.root_dir(where), "bin", "busted.bat") + + if not fs.exists(busted_exe) and not fs.exists(busted_bat) then return nil, "'busted' executable failed to be installed" end end -- cgit v1.2.3-55-g6feb