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 EADB070310; Thu, 4 Mar 2021 12:15:25 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org EADB070310 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1614849326; bh=QM2UfYW1hcQlEhSo8l8Jjg22ODtlusqOj9MccbIh5j0=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=auqe1wzPvdKK7Z72sDecl5P8T9+krRpyj7y/v/+H74NFlKEdfoFAH15c0z3ju1R7u mEWvaD/ynKsVDe9CJZmQmqmATgkQPmR9EZFF8vvaFU8Be/6NSq3lcWaJTSgY87KUmJ gNOgwU3845X8umOj80LhpO+yDW9KWAs36sYwRhfA= Received: from smtp43.i.mail.ru (smtp43.i.mail.ru [94.100.177.103]) (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 F1E8670310 for ; Thu, 4 Mar 2021 12:15:23 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org F1E8670310 Received: by smtp43.i.mail.ru with esmtpa (envelope-from ) id 1lHk4l-00020V-P7; Thu, 04 Mar 2021 12:15:21 +0300 To: Alexander Turenko , Leonid Vasiliev Date: Thu, 4 Mar 2021 12:15:10 +0300 Message-Id: X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-7564579A: 646B95376F6C166E X-77F55803: 4F1203BC0FB41BD92A98208ECBDD29F5BCF62610559114B730DD7337B29CB406182A05F538085040E6731BAB0E1EF5F4505EEEEC657F3D0919F5E6DC61ED0862954AA0B19CC711BE X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7370F4F695FFFC24BEA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637369CDFF96C7994428638F802B75D45FF914D58D5BE9E6BC131B5C99E7648C95CDB1C6D2319E1F1679293BCC92ECA7A5B0D7CD553C61E67A9A471835C12D1D9774AD6D5ED66289B5278DA827A17800CE70F3DDF2BBF19B93A9FA2833FD35BB23D2EF20D2F80756B5F868A13BD56FB6657A471835C12D1D977725E5C173C3A84C327ED053E960B195E117882F4460429728AD0CFFFB425014E868A13BD56FB6657D81D268191BDAD3DC09775C1D3CA48CF4377BF9F7DAD3902BA3038C0950A5D36C8A9BA7A39EFB766EC990983EF5C0329BA3038C0950A5D36D5E8D9A59859A8B66280DB014E7A33FB76E601842F6C81A1F004C90652538430CDED94BCBF13EF3B93EC92FD9297F6718AA50765F7900637870CFFD37CCFDD3AA7F4EDE966BC389F395957E7521B51C24C7702A67D5C33162DBA43225CD8A89FC0F9454058DFE53CA91E23F1B6B78B78B5C8C57E37DE458B4C7702A67D5C3316FA3894348FB808DB48C21F01D89DB561574AF45C6390F7469DAA53EE0834AAEE X-C1DE0DAB: C20DE7B7AB408E4181F030C43753B8186998911F362727C4C7A0BC55FA0FE5FC3D9465901B75B0788847389E0592BDA02EF59A697AEB681EB1881A6453793CE9C32612AADDFBE061900A54B3E0C552C39510FB958DCE06DB6ED91DBE5ABE359ADBCB5631A0A9D21F5E4DBAB5AF249FA793EDB24507CE13387DFF0A840B692CF8 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D341E08D7EE1804B7636920276E74ADFF071E1B3942E15EC76FF77F0C49F2007C0098B63B87FC85CAF61D7E09C32AA3244C28A792224C1142F3BD8896CFAB22CA7CF94338140B71B8EE83B48618A63566E0 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojbL9S8ysBdXgH9yO1rZcQ1kkLxACXlnPm X-Mailru-Sender: 65CD03CFE33A0EC7A9E52F902488B1FA2F8ACBEABB61D76ACE4F41710038B28B5A91A2248D6791ED92F02B39BF137DED0A8ED71B308007E347E5C1256AE813B3E2FBE92986FDCCC89437F6177E88F7363CDA0F3B3F5B9367 X-Mras: Ok Subject: [Tarantool-patches] [PATCHv3 0/2] lua: fix tarantool -e always enters interactive mode 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: Artem Starshov via Tarantool-patches Reply-To: Artem Starshov Cc: tarantool-patches@dev.tarantool.org Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" Issue: https://github.com/tarantool/tarantool/issues/5040 Branch: https://github.com/tarantool/tarantool/tree/artemreyt/gh-5040-interactive-mode-bug CI: https://github.com/tarantool/tarantool/runs/2029377964 Changes in v3: * core: - add case-insensetive value for boolean error injection; - add more tests for setting error injections; - few refactored things (80 line width, alignment and etc.); - add release_disable for test; - add reference to test-run issue in commit message; - now, it is able to set errinjs via env ONLY in Debug mode. * lua: - some refactoring (name of variables, 80 line-width..); - add release_disable for test; - add reference to test-run issue in commit message; - add "errinj" to the name of the test; - add comments to source code. Artem Starshov (2): core: add setting error injections via env lua: fix tarantool -e always enters interactive mode src/lib/core/errinj.c | 30 +++++ src/lib/core/errinj.h | 6 + src/lua/init.c | 27 +++- src/main.cc | 3 + ...5040-inter-mode-isatty-via-errinj.test.lua | 126 ++++++++++++++++++ test/app-tap/suite.ini | 1 + .../errinj_set_with_enviroment_vars.test.lua | 29 ++++ ...errinj_set_with_enviroment_vars_script.lua | 34 +++++ test/box-tap/suite.ini | 1 + test/box/errinj.result | 1 + 10 files changed, 254 insertions(+), 4 deletions(-) create mode 100755 test/app-tap/gh-5040-inter-mode-isatty-via-errinj.test.lua create mode 100755 test/box-tap/errinj_set_with_enviroment_vars.test.lua create mode 100644 test/box-tap/errinj_set_with_enviroment_vars_script.lua -- 2.28.0