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 8EA636BD36; Fri, 26 Mar 2021 10:45:40 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 8EA636BD36 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1616744740; bh=OyfH0NSzFdZfKiaH6pUO96pGxcs1CySWDI+6XbOfISw=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=zLubvGeswlduJ6NSuzgAz2HgN5WkqKm2ZvUqx5FcNCrMuvr2eu/g4J+aXpnPufRCr VZHQd3oXOCPgtJbs6z6lxjX2Wy9PDsGMPZUbUuWk4CL4fOiEXmbRbVrwOFTJc8jxjQ OXy5wWF+Y0x04eNojhovRAVA6JFrhjbPM2evIuNc= Received: from smtp63.i.mail.ru (smtp63.i.mail.ru [217.69.128.43]) (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 0B3946BD36 for ; Fri, 26 Mar 2021 10:44:11 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 0B3946BD36 Received: by smtp63.i.mail.ru with esmtpa (envelope-from ) id 1lPh8c-00042u-7X; Fri, 26 Mar 2021 10:44:10 +0300 To: Sergey Ostanevich , Igor Munkin Date: Fri, 26 Mar 2021 10:42:47 +0300 Message-Id: <5c12f508e83fb3a7191de7d24799ca3e072bf4c2.1616743343.git.skaplun@tarantool.org> X-Mailer: git-send-email 2.31.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-7564579A: B8F34718100C35BD X-77F55803: 4F1203BC0FB41BD9064ADF4728AA0EE9587C800CEAD38A69F042767B24605C2B182A05F5380850408D70040E420644FF20EE3F035A733737063EBD8CCDE01950ABD34BD09F08A2CA X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE779AAD18609327F83EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637DDCE02C19EA0BA868638F802B75D45FF914D58D5BE9E6BC131B5C99E7648C95C5DD32608FC869F5DE64235B981A98DC7539A84CDD42C69EFA471835C12D1D9774AD6D5ED66289B5259CC434672EE6371117882F4460429724CE54428C33FAD30A8DF7F3B2552694AC26CFBAC0749D213D2E47CDBA5A9658359CC434672EE6371117882F4460429728AD0CFFFB425014E868A13BD56FB6657E2021AF6380DFAD1A18204E546F3947C0B7D0EA88DDEDAC722CA9DD8327EE4930A3850AC1BE2E7351D6A3D1828C120DEC4224003CC83647689D4C264860C145E X-C1DE0DAB: C20DE7B7AB408E4181F030C43753B8186998911F362727C414F749A5E30D975C5DD32608FC869F5DE64235B981A98DC7539A84CDD42C69EF9C2B6934AE262D3EE7EAB7254005DCED7532B743992DF240BDC6A1CF3F042BAD6DF99611D93F60EFF532FBFD8162E58C699F904B3F4130E343918A1A30D5E7FCCB5012B2E24CD356 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D348CDF4129B2EA8560330CC44520E33BB05494D9998AE634B6AD68C5B26AE79B084FFC271CEE62AF891D7E09C32AA3244C0586C964ACE918361BCB543B97430D9630452B15D76AEC14927AC6DF5659F194 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojapPp7P/VpAg7UBa70SVpSg== X-Mailru-Sender: 3B9A0136629DC91206CBC582EFEF4CB4F265317A33A08BCAC37CE200D0FCECB76C253EDB8E9AB510F2400F607609286E924004A7DEC283833C7120B22964430C52B393F8C72A41A89437F6177E88F7363CDA0F3B3F5B9367 X-Mras: Ok Subject: [Tarantool-patches] [PATCH v2 luajit 04/30] test: remove quotes in progname from 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 Kaplun via Tarantool-patches Reply-To: Sergey Kaplun Cc: tarantool-patches@dev.tarantool.org Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" When LUAJIT_TEST_COMMAND extend the least `arg` with some string containing double quotes, bash failed to exec this command for child test. This patch removes edged '"' to be able run extended command containing '"' and run other test suites. Part of tarantool/tarantool#5845 Part of tarantool/tarantool#4473 --- test/PUC-Lua-5.1-tests/main.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/PUC-Lua-5.1-tests/main.lua b/test/PUC-Lua-5.1-tests/main.lua index f520896..4f8b8bf 100644 --- a/test/PUC-Lua-5.1-tests/main.lua +++ b/test/PUC-Lua-5.1-tests/main.lua @@ -11,7 +11,9 @@ out = os.tmpname() do local i = 0 while arg[i] do i=i-1 end - progname = '"'..arg[i+1]..'"' + -- LuaJIT: remove edged '"' to be able run extended command + -- containing '"' and run other test suites. + progname = arg[i+1] end print(progname) @@ -53,10 +55,12 @@ prepfile("print(a)", otherprog) RUN("lua -l %s -l%s -lstring -l io %s > %s", prog, otherprog, otherprog, out) checkout("1\n2\n2\n") +-- LuaJIT: test file is adapted for LuaJIT's test system, see +-- the comment near `progname` initialization. local a = [[ assert(table.getn(arg) == 3 and arg[1] == 'a' and arg[2] == 'b' and arg[3] == 'c') - assert(arg[-1] == '--' and arg[-2] == "-e " and arg[-3] == %s) + assert(arg[-1] == '--' and arg[-2] == "-e " and arg[-3] == '%s') assert(arg[4] == nil and arg[-4] == nil) local a, b, c = ... assert(... == 'a' and a == 'a' and b == 'b' and c == 'c') -- 2.31.0