From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id 85BF87030F; Fri, 15 Jan 2021 15:01:13 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 85BF87030F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1610712073; bh=pESsSWULB27xlOOfHwsTyjLKUio4XjNJA+hcI1ISpyQ=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=oyv1aY4s+7ORAMy9G/byvTkF1/i8WFR9wUUDrq+VxMXVPBc1IFLPHTDjsEYBkxRQ9 QS6X3CxUDvmzi2MhRjxeOynDX86QtC7TwHTZV1y+QwXvoohw6ov08hX0UcHPV0zH08 DV/gqwZ6Uw1IroXToTfJYKjQRFZEqXC/bt0c0ask= Received: from smtpng3.m.smailru.net (smtpng3.m.smailru.net [94.100.177.149]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id D25D07030F for ; Fri, 15 Jan 2021 15:00:20 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org D25D07030F Received: by smtpng3.m.smailru.net with esmtpa (envelope-from ) id 1l0Nm8-0002yV-4Q; Fri, 15 Jan 2021 15:00:20 +0300 To: tarantool-patches@dev.tarantool.org, v.shpilevoy@tarantool.org Date: Fri, 15 Jan 2021 15:00:08 +0300 Message-Id: X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-7564579A: 646B95376F6C166E X-77F55803: 4F1203BC0FB41BD9D0E79FBC973162CD9B382B274FF537389656BC690FF7BBE200894C459B0CD1B984AEB1B46C714B12E1F2D5A47A28862F95A620E87688B369D5CCEC6C3F26A72F X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7A3295C83650092F9EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F790063779089FB2CE4EA2908638F802B75D45FF5571747095F342E8C7A0BC55FA0FE5FCB836650DB3362DFF49A5CF7776C3D7E337E29007B3BF2760389733CBF5DBD5E913377AFFFEAFD269A417C69337E82CC2CC7F00164DA146DAFE8445B8C89999729449624AB7ADAF37F6B57BC7E64490611E7FA7ABCAF51C92176DF2183F8FC7C045A75973B56231AD8941B15DA834481F9449624AB7ADAF3735872C767BF85DA29E625A9149C048EE1B544F03EFBC4D57E4A630A5B664A4FF4AD6D5ED66289B524E70A05D1297E1BB35872C767BF85DA227C277FBC8AE2E8BC81139A5709D777F75ECD9A6C639B01B4E70A05D1297E1BBC6867C52282FAC85D9B7C4F32B44FF57285124B2A10EEC6C00306258E7E6ABB4E4A6367B16DE6309 X-C1DE0DAB: C20DE7B7AB408E4181F030C43753B8186998911F362727C414F749A5E30D975CC8EA00DD1EB14C7FBF2D85881D9CFD4186E91F2AB658CAE49C2B6934AE262D3EE7EAB7254005DCED7532B743992DF240BDC6A1CF3F042BAD6DF99611D93F60EF6EA1BA7CA28B4A74699F904B3F4130E343918A1A30D5E7FCCB5012B2E24CD356 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D34AEC7C2AC3C44791DD6C46539315AE236DB020CD17736A12D2D5D932B648D38A9D8FD9D51E6FB96CA1D7E09C32AA3244C753C6BFC48107B7E51F553C5962CE5EB3FD9C8CA1B0515E0927AC6DF5659F194 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojT/h6YDL0UQ4BJuOyKIHJ2w== X-Mailru-Sender: 689FA8AB762F73936BC43F508A063822108EDF8D854BEB7C8055E7F21D45E7B9DD788429FD8613638ED9BB8B05EE7B3AFB559BB5D741EB96D19CD4E7312BAA970A04DAD6CC59E33667EA787935ED9F1B X-Mras: Ok Subject: [Tarantool-patches] [PATCH v7 2/2] luacheck: fix warnings in test/engine_long X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Sergey Bronnikov via Tarantool-patches Reply-To: sergeyb@tarantool.org Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" From: Sergey Bronnikov Closes #5650 Reviewed-by: Vladislav Shpilevoy Reviewed-by: Igor Munkin Co-authored-by: Vladislav Shpilevoy Co-authored-by: Igor Munkin --- .luacheckrc | 8 +++++++- test/engine_long/suite.lua | 5 +---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.luacheckrc b/.luacheckrc index d58fd57b0..b581136b2 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -40,7 +40,7 @@ exclude_files = { -- Unused source file, to be dropped (gh-5169). "test/box/lua/test_init.lua", "test/engine/*.test.lua", - "test/engine_long/**/*.lua", + "test/engine_long/*.test.lua", "test/long_run-py/**/*.lua", "test/luajit-tap/**/*.lua", "test/replication/**/*.lua", @@ -176,3 +176,9 @@ files["test/box-tap/extended_error.test.lua"] = { "forbidden_function", }, } +files["test/engine_long/suite.lua"] = { + globals = { + "delete_replace_update", + "delete_insert", + } +} diff --git a/test/engine_long/suite.lua b/test/engine_long/suite.lua index 9ac2bff9f..586160a1a 100644 --- a/test/engine_long/suite.lua +++ b/test/engine_long/suite.lua @@ -2,7 +2,7 @@ local function string_function() local random_number local random_string random_string = "" - for x = 1,20,1 do + for _ = 1,20,1 do random_number = math.random(65, 90) random_string = random_string .. string.char(random_number) end @@ -10,7 +10,6 @@ local function string_function() end function delete_replace_update(engine_name, iterations) - local string_value if (box.space._space.index.name:select{'tester'}[1] ~= nil) then box.space.tester:drop() end @@ -40,7 +39,6 @@ function delete_replace_update(engine_name, iterations) random_number = math.random(1,6) string_value_3 = string_function() --- print('<'..counter..'> [' .. random_number .. '] value_2: ' .. string_value_2 .. ' value_3: ' .. string_value_3) if random_number == 1 then box.space.tester:delete{string_value_2} end @@ -69,7 +67,6 @@ function delete_replace_update(engine_name, iterations) end function delete_insert(engine_name, iterations) - local string_value if (box.space._space.index.name:select{'tester'}[1] ~= nil) then box.space.tester:drop() end -- 2.25.1