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 862147182A; Thu, 18 Feb 2021 22:30:27 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 862147182A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1613676627; bh=cISZBlVWAb+JcKduybL1619PZjmQYhJ3gTVsBvqbRpw=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=tMgpGA7KREk7ORs/VvyWn0iKS9ch8vn2Ys98gHQMS7oHtUZz29u+1spbg5OEUdwJ+ KDzcokvLbWtVG/es48ADnqjaBilL0O8T+GuTQBgAptDBElj0YC/9rK4hdHvZbybXY9 cP+rpFzLfW6VuCYSsa4MLAJ2Bx3x+yHRn6OzidpE= Received: from smtp53.i.mail.ru (smtp53.i.mail.ru [94.100.177.113]) (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 0FB186EC58 for ; Thu, 18 Feb 2021 22:30:26 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 0FB186EC58 Received: by smtp53.i.mail.ru with esmtpa (envelope-from ) id 1lCp0K-0001dz-PJ; Thu, 18 Feb 2021 22:30:25 +0300 To: Alexander Turenko , Sergey Bronnikov Date: Thu, 18 Feb 2021 22:30:17 +0300 Message-Id: X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-7564579A: 646B95376F6C166E X-77F55803: 4F1203BC0FB41BD975C3EC174F5669229511437AA01F46811CFCF616A939B362182A05F53808504017905C828158C02366787C65083BE49F24A4C8B27434D2A8B3B337150C75DD1D X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE77BF46084C0059042EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637E16D8B060A9A23898638F802B75D45FF5571747095F342E8C7A0BC55FA0FE5FC12ACF8D6BDD29235B3A24C2797F8D7CCAF8E0E799A191DAE389733CBF5DBD5E913377AFFFEAFD269176DF2183F8FC7C0ECC8AC47CD0EDEFF8941B15DA834481FCF19DD082D7633A0EF3E4896CB9E6436389733CBF5DBD5E9D5E8D9A59859A8B636DA1BED736F9328CC7F00164DA146DA6F5DAA56C3B73B237318B6A418E8EAB8D32BA5DBAC0009BE9E8FC8737B5C2249C4A96FD35869E80276E601842F6C81A12EF20D2F80756B5F7E9C4E3C761E06A776E601842F6C81A127C277FBC8AE2E8B68589BCE6B56D4553AA81AA40904B5D9DBF02ECDB25306B2B25CBF701D1BE8734AD6D5ED66289B5278DA827A17800CE7CA4B174CFBB40A0467F23339F89546C5A8DF7F3B2552694A6FED454B719173D6725E5C173C3A84C3C3E5FCF1FE4BE79D35872C767BF85DA2F004C906525384306FED454B719173D6462275124DF8B9C9DE2850DD75B2526BE5BFE6E7EFDEDCD789D4C264860C145E X-C1DE0DAB: C20DE7B7AB408E4181F030C43753B8186998911F362727C4C7A0BC55FA0FE5FC12ACF8D6BDD29235B3A24C2797F8D7CCA9E53954DB021C4FB1881A6453793CE9C32612AADDFBE06169C5891BE37D434BC581CE5390BD6510078749EA292E75700EA540613ABC294F04EBA3D8E7E5B87ABF8C51168CD8EBDB5FC25ED3FCEC3375DC48ACC2A39D04F89CDFB48F4795C241BDAD6C7F3747799A X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D342B94C1DAF75C4D22458A8366F3ADC5DE4D62F52CDA0C02500DC7F647E0DC31FD001F8EB7476BC6251D7E09C32AA3244C88D87F68C93581614F35ECEC3B91919FB4DF56057A86259F83B48618A63566E0 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojbL9S8ysBdXg4WSo14jlZAH/rA+ZpaiB4 X-Mailru-Sender: 65CD03CFE33A0EC7E4F6C6702325C427094F778B4ECEAC84495AF75447D346B217DCDD0B5822A278B08A37556DE0CB7BB7E364AFDB3F206FD953F29DB7D76D89B1E6F68DAE724AB9112434F685709FCF0DA7A0AF5A3A8387 X-Mras: Ok Subject: [Tarantool-patches] [PATCHv2 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/1929677579 Previous patch version: https://lists.tarantool.org/pipermail/tarantool-patches/2021-January/022144.html Changes in v2: * core: - added `part of #5040` to the commit message; - rename `errinj_scan_env()` -> `errinj_set_with_environment_vars()`; - whitespaces refactored; - add test for setting error injections via environment variables; * lua: - little code refactoring after Sergey Bronnikov review (renames and move includes in the alphabetical order); - fixed bug, when test failed under high concurrency. There were about 20 fails with 100 workers. Now, it's ok, tested with 300 workers om CentOS and macOS. (Bug resolved with removing temporary output_file after each testcase iteration); - moved ChangeLog to the last commit. Artem Starshov (2): core: add setting error injections via env lua: fix tarantool -e always enters interactive mode src/lib/core/errinj.c | 26 ++++ src/lib/core/errinj.h | 6 + src/lua/init.c | 20 ++- src/main.cc | 1 + ...40-always-enters-interactive-mode.test.lua | 131 ++++++++++++++++++ .../errinj_set_with_enviroment_vars.test.lua | 14 ++ ...errinj_set_with_enviroment_vars_script.lua | 13 ++ test/box/errinj.result | 1 + 8 files changed, 208 insertions(+), 4 deletions(-) create mode 100755 test/app-tap/gh-5040-always-enters-interactive-mode.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