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 968426F3C7; Fri, 26 Mar 2021 14:12:57 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 968426F3C7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1616757177; bh=qU1v+1TBXF3MFhULpANjhZOLad9bhujxPBzqQHLz4Co=; h=In-Reply-To:Date:References:To:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=nDAio8pVr6OQC7Q7RcwWpsHZe0B5aTQ3vC/fooWm65lhANYUD5dBTpxy9i/k9dBhw RcBQgTL114vf7ep8obT6vbjAbBnsXtlK/YsK4L6zo8xKrOoEXB4OdrNL5Zd6p2Fle5 wdktNx0aW6tUSfPrFy29FXkJuDGSTrZ9gD641J08= Received: from smtp39.i.mail.ru (smtp39.i.mail.ru [94.100.177.99]) (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 F28F36F3C7 for ; Fri, 26 Mar 2021 14:12:55 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org F28F36F3C7 Received: by smtp39.i.mail.ru with esmtpa (envelope-from ) id 1lPkOd-0002aC-9a; Fri, 26 Mar 2021 14:12:55 +0300 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) In-Reply-To: <5c12f508e83fb3a7191de7d24799ca3e072bf4c2.1616743343.git.skaplun@tarantool.org> Date: Fri, 26 Mar 2021 14:12:54 +0300 Content-Transfer-Encoding: quoted-printable Message-Id: <9BEF6F75-F888-477C-9C14-AB24E2BAB62E@tarantool.org> References: <5c12f508e83fb3a7191de7d24799ca3e072bf4c2.1616743343.git.skaplun@tarantool.org> To: Sergey Kaplun X-Mailer: Apple Mail (2.3654.60.0.2.21) X-7564579A: 646B95376F6C166E X-77F55803: 4F1203BC0FB41BD9064ADF4728AA0EE922675D89A18E042B1EBC993A8274C79D182A05F5380850402F627A7FEB37A900F4566029A4C3E89EF31A78EA45510BDC88EAA99EA017DB93 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7EED5D2FAB4CEB1EDEA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F79006378D64EDD178B2A1008638F802B75D45FF914D58D5BE9E6BC131B5C99E7648C95C5DD32608FC869F5D0CABAD1D180DE8ACAEE3FCE0F0707F9DA471835C12D1D9774AD6D5ED66289B5259CC434672EE6371117882F4460429724CE54428C33FAD30A8DF7F3B2552694AC26CFBAC0749D213D2E47CDBA5A9658359CC434672EE6371117882F4460429728AD0CFFFB425014E868A13BD56FB6657E2021AF6380DFAD1A18204E546F3947C0B7D0EA88DDEDAC722CA9DD8327EE4930A3850AC1BE2E73589424AA0EF8DE9BAC4224003CC83647689D4C264860C145E X-C1DE0DAB: 0D63561A33F958A5668D694C7FEC6A7E025214E7DC492C358A9D40FB1AF8D37FD59269BC5F550898D99A6476B3ADF6B47008B74DF8BB9EF7333BD3B22AA88B938A852937E12ACA7502E6951B79FF9A3F410CA545F18667F91A7EA1CDA0B5A7A0 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D340EEB18E491831571A6A6C906ABC8B02773B05A6A4B455AFAFC5C49FC703C92AB38585CA2081CC8611D7E09C32AA3244C0D0372911C1EE8980193E8C8AB62DAAEE3D93501275E802FFACE5A9C96DEB163 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojapPp7P/VpAjW7ZXgmmC2lA== X-Mailru-Sender: 3B9A0136629DC912F4AABCEFC589C81E991ED105E773C6CC94FAD402A077C5708588D5E820B9E73CAD07DD1419AC565FA614486B47F28B67C5E079CCF3B0523AED31B7EB2E253A9E112434F685709FCF0DA7A0AF5A3A8387 X-Mras: Ok Subject: Re: [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 Ostanevich via Tarantool-patches Reply-To: Sergey Ostanevich Cc: tarantool-patches@dev.tarantool.org Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" LGTM. Sergos > On 26 Mar 2021, at 10:42, Sergey Kaplun wrote: >=20 > When LUAJIT_TEST_COMMAND extend the least `arg` with > some string containing double quotes, bash failed to exec this > command for child test. >=20 > This patch removes edged '"' to be able run extended command > containing '"' and run other test suites. >=20 > 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(-) >=20 > 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 =3D os.tmpname() > do > local i =3D 0 > while arg[i] do i=3Di-1 end > - progname =3D '"'..arg[i+1]..'"' > + -- LuaJIT: remove edged '"' to be able run extended command > + -- containing '"' and run other test suites. > + progname =3D arg[i+1] > end > print(progname) >=20 > @@ -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") >=20 > +-- LuaJIT: test file is adapted for LuaJIT's test system, see > +-- the comment near `progname` initialization. > local a =3D [[ > assert(table.getn(arg) =3D=3D 3 and arg[1] =3D=3D 'a' and > arg[2] =3D=3D 'b' and arg[3] =3D=3D 'c') > - assert(arg[-1] =3D=3D '--' and arg[-2] =3D=3D "-e " and arg[-3] =3D=3D= %s) > + assert(arg[-1] =3D=3D '--' and arg[-2] =3D=3D "-e " and arg[-3] =3D=3D= '%s') > assert(arg[4] =3D=3D nil and arg[-4] =3D=3D nil) > local a, b, c =3D ... > assert(... =3D=3D 'a' and a =3D=3D 'a' and b =3D=3D 'b' and c =3D=3D = 'c') > --=20 > 2.31.0 >=20