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 5F9726F3C0; Thu, 11 Mar 2021 15:05:54 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 5F9726F3C0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1615464354; bh=im5nVyWBq69P48h+BKPBzt75VEIYeQUyyCJYUXbJTkI=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=iduVxpg8u1tNlkibMnlTb5G++qfSv11AsWF53pu3S7cE2ox364zQSMqQmGknpYda3 AYOeQLCGxEZPN+3PGhN+PxqpR1zwmmgPxYKhpLJz9rosckJqzaQB50Y5gFGZbA4tui qhIT9G3WMp/0ZJmA1Ea95Jh9KbLLLS/QdLWv2ecw= Received: from smtp56.i.mail.ru (smtp56.i.mail.ru [217.69.128.36]) (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 743CF6F3C0 for ; Thu, 11 Mar 2021 15:05:53 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 743CF6F3C0 Received: by smtp56.i.mail.ru with esmtpa (envelope-from ) id 1lKK4d-0001W0-Uj; Thu, 11 Mar 2021 15:05:52 +0300 To: Alexander Turenko , Leonid Vasiliev Date: Thu, 11 Mar 2021 15:05:47 +0300 Message-Id: X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-7564579A: 646B95376F6C166E X-77F55803: 4F1203BC0FB41BD9D3134714A9BDB69B7D7089AC2F541D135EDAE37630AADC6800894C459B0CD1B925E66E8A698A8B37C41EEF37B5ACA7F966ECB7D3664F72D44B90BBB9A9E916C9 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE782A779A89F7D69B2C2099A533E45F2D0395957E7521B51C2CFCAF695D4D8E9FCEA1F7E6F0F101C6778DA827A17800CE75BDEF5A3674FD449EA1F7E6F0F101C67CDEEF6D7F21E0D1D174C73DBBBFC7664A9B589C57B9CBD951DB751D3C739940F2F6578F3743648A3389733CBF5DBD5E913377AFFFEAFD269176DF2183F8FC7C0B27420F9988F54058941B15DA834481FCF19DD082D7633A0EF3E4896CB9E6436389733CBF5DBD5E9D5E8D9A59859A8B6BAA8CD687FCDB2EBCC7F00164DA146DA6F5DAA56C3B73B237318B6A418E8EAB8D32BA5DBAC0009BE9E8FC8737B5C2249AF6E2022B6D79C4676E601842F6C81A12EF20D2F80756B5F7E9C4E3C761E06A776E601842F6C81A127C277FBC8AE2E8B730D896219E5F9F4D81D268191BDAD3D698AB9A7B718F8C442539A7722CA490C13377AFFFEAFD26923F8577A6DFFEA7C0B02670E5FEECA504AD6D5ED66289B524E70A05D1297E1BB35872C767BF85DA227C277FBC8AE2E8B12B4E483DFBE153475ECD9A6C639B01B4E70A05D1297E1BBC6867C52282FAC85D9B7C4F32B44FF57285124B2A10EEC6C00306258E7E6ABB4E4A6367B16DE6309 X-B7AD71C0: AC4F5C86D027EB782CDD5689AFBDA7A2BBE337FB72E923155C0AF1600DCBC20B0460571BCABD25ADEF810112E978B311 X-C1DE0DAB: C20DE7B7AB408E4181F030C43753B8186998911F362727C414F749A5E30D975C11F5982A89E0728CA201EE67C0D5561D068A12A43808ECE99C2B6934AE262D3EE7EAB7254005DCED5177E3BD826A77771E0A4E2319210D9B64D260DF9561598F01A9E91200F654B0279E343DB675BB2F8E8E86DC7131B365E7726E8460B7C23C X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D34351729636A02D1DEA9400B2B6B78891891F5E2220059B244A504C9A0C0BDFDEF2F349636854BC3FD1D7E09C32AA3244CCA76D06CD12E153C025F85CD14039B821E098CBE561D634383B48618A63566E0 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojbL9S8ysBdXgFkAEGrNTi776w6IQSyQa7 X-Mailru-Sender: 65CD03CFE33A0EC78F35AC4B367C11FEF31B2420BBA8D0BB651945E9240E54518E205735D221D2D492F02B39BF137DED0A8ED71B308007E347E5C1256AE813B3E2FBE92986FDCCC89437F6177E88F7363CDA0F3B3F5B9367 X-Mras: Ok Subject: [Tarantool-patches] [PATCHv4 0/2] lua: fix tarantool -e always enters interactive 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 Changes in v4: * core: - add wiki for setting error injections vi env: https://github.com/tarantool/tarantool/wiki/Error-injections; - since now `panic()` is invoked in case of wrong value for errinj environment variable; - some codestyle fixes; * lua: - add changelogs/unreleased/fix-tarantool-e-option.md; - some codestyle fixes; Artem Starshov (2): core: add setting error injections via env lua: fix tarantool -e always enters interactive mode .../unreleased/fix-tarantool-e-option.md | 6 + src/lib/core/errinj.c | 37 +++++ 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 + 11 files changed, 267 insertions(+), 4 deletions(-) create mode 100644 changelogs/unreleased/fix-tarantool-e-option.md 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