aboutsummaryrefslogtreecommitdiff
path: root/spec/util
diff options
context:
space:
mode:
Diffstat (limited to 'spec/util')
-rw-r--r--spec/util/test_env.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/util/test_env.lua b/spec/util/test_env.lua
index 181f4693..f4cd3f60 100644
--- a/spec/util/test_env.lua
+++ b/spec/util/test_env.lua
@@ -473,7 +473,9 @@ local function make_run_function(cmd_name, exec_function, with_coverage, do_prin
473 cmd_prefix = cmd_prefix .. "-e \"require('luacov.runner')('" .. test_env.testing_paths.testrun_dir .. "/luacov.config')\" " 473 cmd_prefix = cmd_prefix .. "-e \"require('luacov.runner')('" .. test_env.testing_paths.testrun_dir .. "/luacov.config')\" "
474 end 474 end
475 475
476 cmd_prefix = cmd_prefix .. test_env.testing_paths.src_dir .. "/bin/" .. cmd_name .. " " 476 if cmd_name then
477 cmd_prefix = cmd_prefix .. test_env.testing_paths.src_dir .. "/bin/" .. cmd_name .. " "
478 end
477 479
478 return function(cmd, new_vars) 480 return function(cmd, new_vars)
479 local temp_vars = {} 481 local temp_vars = {}
@@ -491,6 +493,8 @@ end
491 493
492local function make_run_functions() 494local function make_run_functions()
493 return { 495 return {
496 lua = make_run_function(nil, execute_output, true, true),
497 lua_bool = make_run_function(nil, execute_bool, true, true),
494 luarocks = make_run_function("luarocks", execute_output, true, true), 498 luarocks = make_run_function("luarocks", execute_output, true, true),
495 luarocks_bool = make_run_function("luarocks", execute_bool, true, true), 499 luarocks_bool = make_run_function("luarocks", execute_bool, true, true),
496 luarocks_noprint = make_run_function("luarocks", execute_bool, true, false), 500 luarocks_noprint = make_run_function("luarocks", execute_bool, true, false),