aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/luarocks/cmd/test.lua14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/luarocks/cmd/test.lua b/src/luarocks/cmd/test.lua
index dd970221..413a029c 100644
--- a/src/luarocks/cmd/test.lua
+++ b/src/luarocks/cmd/test.lua
@@ -25,23 +25,23 @@ test suite arguments.
25 25
26]]..util.deps_mode_help() 26]]..util.deps_mode_help()
27 27
28function cmd_test.command(flags, arg, ...) 28function cmd_test.command(flags, argument, ...)
29 assert(type(arg) == "string" or not arg) 29 assert(type(argument) == "string" or not argument)
30 30
31 local args = { ... } 31 local arguments = { ... }
32 32
33 if arg and arg:match("rockspec$") then 33 if argument and argument:match("rockspec$") then
34 return test.run_test_suite(arg, flags["test-type"], args) 34 return test.run_test_suite(argument, flags["test-type"], arguments)
35 end 35 end
36 36
37 table.insert(args, 1, arg) 37 table.insert(arguments, 1, argument)
38 38
39 local rockspec, err = util.get_default_rockspec() 39 local rockspec, err = util.get_default_rockspec()
40 if not rockspec then 40 if not rockspec then
41 return nil, err 41 return nil, err
42 end 42 end
43 43
44 return test.run_test_suite(rockspec, flags["test-type"], args) 44 return test.run_test_suite(rockspec, flags["test-type"], arguments)
45end 45end
46 46
47return cmd_test 47return cmd_test