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 6194C7030C; Fri, 5 Mar 2021 15:45:06 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 6194C7030C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1614948306; bh=FRmhdXMcZBrm9ocM9EzzrMhDyGcnvuvYs7LXSR22NAE=; h=To:References:Date:In-Reply-To:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=Mu1PaWDoPPw6Ysp5nD9gnzQDPCU0a+osfjdqUN51iulMqFgaIC0p2wNhFq0ziMwMR MjE6PP1MH9wZz9O9RVJwHololz/B8PQqQyZQtoPq9zIVOW6vbnNlkvz3elOc9b/Z7X jnyCFtxcJQGlRLg9+EEc8/9765tXg3uiH5sT8M+w= 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 31CEF7030C for ; Fri, 5 Mar 2021 15:45:05 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 31CEF7030C Received: by smtp63.i.mail.ru with esmtpa (envelope-from ) id 1lI9pI-0002vI-8S; Fri, 05 Mar 2021 15:45:04 +0300 To: Artem Starshov , Alexander Turenko References: Message-ID: <6d33f734-6cca-ba33-0bca-6fce61d373cf@tarantool.org> Date: Fri, 5 Mar 2021 15:44:18 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-7564579A: 78E4E2B564C1792B X-77F55803: 4F1203BC0FB41BD9D3134714A9BDB69B26D8F72E9B1572BA8E4C181D918FF7DF00894C459B0CD1B904DD55F8B7C995A46304985A5D01ABDB7FF85FE2931B4764A5507689F0E3451B X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7C2204D4F9A221771EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F790063757004B04402545C58638F802B75D45FF5571747095F342E8C7A0BC55FA0FE5FC889A9E1B1F87641747B89F426C3B81C341EA4D663B7D2E29389733CBF5DBD5E913377AFFFEAFD269176DF2183F8FC7C07E7E81EEA8A9722B8941B15DA834481FCF19DD082D7633A0EF3E4896CB9E6436389733CBF5DBD5E9D5E8D9A59859A8B6D082881546D93491CC7F00164DA146DA6F5DAA56C3B73B237318B6A418E8EAB8D32BA5DBAC0009BE9E8FC8737B5C22495C137F56075BEB0576E601842F6C81A12EF20D2F80756B5F7E9C4E3C761E06A776E601842F6C81A127C277FBC8AE2E8BFE2C9C77650FFF953AA81AA40904B5D9DBF02ECDB25306B2B25CBF701D1BE8734AD6D5ED66289B5278DA827A17800CE70BB89B22BF4660DC67F23339F89546C5A8DF7F3B2552694A6FED454B719173D6725E5C173C3A84C337FDC682149C2B9D35872C767BF85DA2F004C906525384306FED454B719173D6462275124DF8B9C9DE2850DD75B2526BE5BFE6E7EFDEDCD789D4C264860C145E X-B7AD71C0: AC4F5C86D027EB782CDD5689AFBDA7A2BBE337FB72E92315FF39D8DB89857825743D937135AA13FF7120598F3739033D109B151A58CD633F834459D11680B505F8373BABC9738706933C3E1CD4ED6E19 X-C1DE0DAB: 0D63561A33F958A58462354C2B5163552298C5CEFDDFD556D84604636963F981D59269BC5F550898D99A6476B3ADF6B47008B74DF8BB9EF7333BD3B22AA88B938A852937E12ACA75448CF9D3A7B2C848410CA545F18667F91A7EA1CDA0B5A7A0 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D3444047AE358B407540593A27BEDEC8E79318F027373B7E9D7C0636F06040D865719ABA072FFE3A0E71D7E09C32AA3244CD4B3A33649F177B592D6FF2EF6D0948CFE8DA44ABE2443F7927AC6DF5659F194 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojXmjzTEesUQFhoKxTi6D6NQ== X-Mailru-Sender: 48EFD2E18A91C559803250E574CC3D2946023F8444935D145EC9DD635E116706E5E949923882BAADD35D514C7DAC97282D063C67CFD4E84987597EC79699C0E6F21BD4036121A32F7402F9BA4338D657ED14614B50AE0675 X-Mras: Ok Subject: Re: [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: Leonid Vasiliev via Tarantool-patches Reply-To: Leonid Vasiliev Cc: tarantool-patches@dev.tarantool.org Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" Hi! Please, add changelogs according to `doc/changelogs.md`. On 3/4/21 12:15 PM, Artem Starshov wrote: > 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 >