From 8b60d7440ce6f215c7ea480950e4df5d190992f0 Mon Sep 17 00:00:00 2001 From: Oliver Vartiainen Date: Tue, 23 Oct 2018 01:55:44 +0300 Subject: test: rename a misinterpretable vararg (#936) Fixes #931 --- src/luarocks/cmd/test.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src') 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. ]]..util.deps_mode_help() -function cmd_test.command(flags, arg, ...) - assert(type(arg) == "string" or not arg) +function cmd_test.command(flags, argument, ...) + assert(type(argument) == "string" or not argument) - local args = { ... } + local arguments = { ... } - if arg and arg:match("rockspec$") then - return test.run_test_suite(arg, flags["test-type"], args) + if argument and argument:match("rockspec$") then + return test.run_test_suite(argument, flags["test-type"], arguments) end - table.insert(args, 1, arg) + table.insert(arguments, 1, argument) local rockspec, err = util.get_default_rockspec() if not rockspec then return nil, err end - return test.run_test_suite(rockspec, flags["test-type"], args) + return test.run_test_suite(rockspec, flags["test-type"], arguments) end return cmd_test -- cgit v1.2.3-55-g6feb