diff options
author | Oliver Vartiainen <oliver@iki.fi> | 2018-10-23 01:55:44 +0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-10-22 19:55:44 -0300 |
commit | 8b60d7440ce6f215c7ea480950e4df5d190992f0 (patch) | |
tree | 8cd06b1f2378147e71f196a0ec78caa65c4f8b31 | |
parent | 88e97b4579a6c30357ddbde81af213350181c288 (diff) | |
download | luarocks-8b60d7440ce6f215c7ea480950e4df5d190992f0.tar.gz luarocks-8b60d7440ce6f215c7ea480950e4df5d190992f0.tar.bz2 luarocks-8b60d7440ce6f215c7ea480950e4df5d190992f0.zip |
test: rename a misinterpretable vararg (#936)
Fixes #931
-rw-r--r-- | src/luarocks/cmd/test.lua | 14 |
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 | ||
28 | function cmd_test.command(flags, arg, ...) | 28 | function 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) |
45 | end | 45 | end |
46 | 46 | ||
47 | return cmd_test | 47 | return cmd_test |