From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id CC7B343E33; Wed, 10 Apr 2024 13:27:37 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6ABF2402CF; Wed, 10 Apr 2024 13:27:37 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mails.dpdk.org (Postfix) with ESMTP id 1C006402C7 for ; Wed, 10 Apr 2024 13:27:36 +0200 (CEST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 4AEC5139F; Wed, 10 Apr 2024 04:28:05 -0700 (PDT) Received: from [10.1.32.34] (FVFG51LCQ05N.cambridge.arm.com [10.1.32.34]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B81033F6C4; Wed, 10 Apr 2024 04:27:34 -0700 (PDT) Message-ID: Date: Wed, 10 Apr 2024 12:27:33 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 5/6] dts: add statefulness to InteractiveShell Content-Language: en-GB To: =?UTF-8?Q?Juraj_Linke=C5=A1?= , Jeremy Spewock Cc: dev@dpdk.org, Jack Bond-Preston , Honnappa Nagarahalli References: <20240326190422.577028-1-luca.vizzarro@arm.com> <20240326190422.577028-6-luca.vizzarro@arm.com> From: Luca Vizzarro In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On 10/04/2024 07:53, Juraj Linkeš wrote: > I have a general question. What are these changes for? Do you > anticipate us needing this in the future? Wouldn't it be better to add > it only when we need it? It's been sometime since we raised this task internally. This patch and the next one arise from some survey done on old DTS test cases. Unfortunately, I can't pinpoint. Specifically for this patch though, the timeout bit is useful in conjunction with the related change in the next. Instead of giving an optional timeout argument to all the commands where we may want to change it, aren't we better off with providing a facility to temporarily change this for the current scope? > > On Thu, Mar 28, 2024 at 5:48 PM Jeremy Spewock wrote: >> >> On Tue, Mar 26, 2024 at 3:04 PM Luca Vizzarro wrote: >> >>> diff --git a/dts/framework/remote_session/interactive_shell.py b/dts/framework/remote_session/interactive_shell.py >>> index a2c7b30d9f..5d80061e8d 100644 >>> --- a/dts/framework/remote_session/interactive_shell.py >>> +++ b/dts/framework/remote_session/interactive_shell.py >>> @@ -41,8 +41,10 @@ class InteractiveShell(ABC): >>> _stdout: channel.ChannelFile >>> _ssh_channel: Channel >>> _logger: DTSLogger >>> + __default_timeout: float >> >> Only single underscores are used for other private variables, probably >> better to keep that consistent with this one. >> > > I agree, I don't see a reason for the double underscore. Ack. > >>> _timeout: float >>> _app_args: Params | None >>> + _is_privileged: bool = False >> >>> 2.34.1 >>>