From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7101979564966936576 X-Received: by 2002:a1f:bd0a:0:b0:35c:bf11:12d8 with SMTP id n10-20020a1fbd0a000000b0035cbf1112d8mr1761056vkf.38.1654169309555; Thu, 02 Jun 2022 04:28:29 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a67:e256:0:b0:337:d637:d8ce with SMTP id w22-20020a67e256000000b00337d637d8cels1209491vse.0.gmail; Thu, 02 Jun 2022 04:28:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyT06DWNkM+KPcZ2zr+kCATwwcfZK8XoAeej4W0REahQzevqe49U2ondfpKtd5Znb62ZnzB X-Received: by 2002:a05:6102:10d0:b0:34b:8e3b:4e6d with SMTP id t16-20020a05610210d000b0034b8e3b4e6dmr187654vsr.18.1654169309012; Thu, 02 Jun 2022 04:28:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654169309; cv=none; d=google.com; s=arc-20160816; b=StOBdycPCRxiMJh5GTv7NzUYcaBcH2Ot1TtWS/BNSyfcb1zLHlYEhH2shmJ9lyX8PA WjzzUzh1xGqW3vqWU7Dfu3j7BtLfE5+yN3cogTMbE8eLcmm4niZoDyiNzZVSw1bO+/T5 QsFQ7g6vuHsenZfFO09tvqapnF28ue1Pk351YnnUxHKzJ2uDyf00HNgTRYQCKyXLxt/h kIpAWk7Yg9TrBrn7PAFFPod1iNrHRswmQ+hBLJAuUlEvK1S9Yu6uhn8fHt3YOMpEI2Qu nVpJTJPrqYjd/02gjxFCo4SMoZy3Q1+zNz/kcla5ShwC4Y2+NiaTgkjS6cNLXUqRfjqJ M6nQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id; bh=ZLONHPGyWvMJzM4mzB/QjU2o9Oqh6ElXdXBhs6R0Sd8=; b=hwrzKWVCGue/IkvzVj1pmPIW5Vm4cnqUlRDuzqGYLalBXLmuvM8XK0MgNK5o7c1yKJ ehAkWB97yctfMBDeq4J3utg153y8QhYUX+flMQGo5nh1ejktmaliysgg7uVXLdLLrwXK qQPiGIzzNlep0QbZKgP2/gVrP2IDxi9jFQVxGUPbGq4GWwQbtACYrDnScFn4W9fOAX11 ju5t/vBKvB1BOpege0VI1vVWrRjEhFSfJ0FdrWpD4eT8b4PSWI/PpcUEYdX6q5k7R9+F nJ3xjSi0Di70ydQn+Wp/6i+A5ULULwfUuq2i6SzMu4X5Yy/yW9BFC+x7BNtPGCMwOayh 7QQA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de Return-Path: Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id s20-20020a67efd4000000b0032cddd78670si161482vsp.2.2022.06.02.04.28.28 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 02 Jun 2022 04:28:28 -0700 (PDT) Received-SPF: pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de Received: from [127.0.0.1] (host-80-81-17-52.static.customer.m-online.net [80.81.17.52]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 252BSPpg009960 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 2 Jun 2022 13:28:26 +0200 Message-ID: Date: Thu, 2 Jun 2022 14:28:25 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH] utils: Ensure shell function failure in python logging is correct Content-Language: en-US To: isar-users References: <20220526094739.6340-1-amikan@ilbers.de> From: Anton Mikanovich In-Reply-To: <20220526094739.6340-1-amikan@ilbers.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-TUID: PmCCcWWBxbkO 26.05.2022 12:47, Anton Mikanovich wrote: > If a python function exec_func() calls a shell task, the logging wasn't working > correctly in all cases since the exception was turned into a BBHandledException() > and the logfile piece was lost which is handled at the top task level. > > The easiest way to avoid this is to allow the ExecutionError exceptions to > be raised to a higher level, we don't need the traceback for them. > > Backported from Bitbake 2.0 upstream branch: > https://git.openembedded.org/bitbake/commit/?id=7cae11f558f9ff5fd05ef23b789aaef92fb5a327 > > Signed-off-by: Anton Mikanovich Applied to next.