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 3A458455E7; Tue, 9 Jul 2024 18:32:12 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0905E402A9; Tue, 9 Jul 2024 18:32:12 +0200 (CEST) Received: from mail-pg1-f228.google.com (mail-pg1-f228.google.com [209.85.215.228]) by mails.dpdk.org (Postfix) with ESMTP id 59D8E4025C for ; Tue, 9 Jul 2024 18:32:11 +0200 (CEST) Received: by mail-pg1-f228.google.com with SMTP id 41be03b00d2f7-70df2135426so2763393a12.2 for ; Tue, 09 Jul 2024 09:32:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iol.unh.edu; s=unh-iol; t=1720542730; x=1721147530; darn=dpdk.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=1CQWRBj6yO6YBHqZO7VBMqp3rOwYmofE/BPBRpCNo8Q=; b=K0dO2GDyHXZxNw9FsfuFGCLNS5Uwqe1wl2iPxB64evfktPYBoiFfCYOF49xmNC4w6o DKvHAUYQL3sXOtjcW2cTnxKwUAQ1O1ii8kC2zb5/brqgnI9MZU+ncFDPheUM0Xs5zjLD LG6LjZFHFvrD0NwA3NI6rJemswCyJaI5aK9ww= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720542730; x=1721147530; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=1CQWRBj6yO6YBHqZO7VBMqp3rOwYmofE/BPBRpCNo8Q=; b=PRU4GfCZ268o8cIhQB8mxB2lvPmAl3Pd2RiExHt23U4WgaN9lXuMO8tRP3V4V+9/3C HaJNA+vbASuVkIGCGJ8K5O+jnjzHXmuqwYpTcwhS5Goq5QUV8qS6y2gZ05sg5ON2Un5U QHmhsUb7HK7w2TH/AD6MQzsRzi6wHgmsiEx0tFPzAUOTMYmkfOu3WKHhPdNCFdiVozM0 QKSWSg/OC2zAlAPC7fCVTL9Oymw6AMwOjJcJa9XxwGUrdKO1VK/hG5VzWCGjFoFxQCyW YIDP8lId20el+JgpU7hzp7nzU+jl7+5R1PLcDkoBVknBY7hmWLqx9gKHaXs4Qkw6gAGL F60A== X-Gm-Message-State: AOJu0YwB6zNYI16DJgx2+6k1KVZN5CXfwasAegpsw4DBJ1wG2fP8cBWo BWkxcij6DPtb6xBUye8VpRBJ8wQdooAJb+Y6Oc/9O3aPigdaU3HLLPSAJZG4A1YuUODRb7t6Eot KPqwN8qrxzLp58qpFaKuntz5v7QkhDzWasHkiXADnMb986+TA X-Google-Smtp-Source: AGHT+IHub9z8ZjwnaOoPo8S2tH7FcKpXGsAju4qLE2Il/XwcvsZB5S1MBDLqx4caeUnxqlarUhTw0O+opcDS X-Received: by 2002:a05:6a21:1a7:b0:1c0:ebca:ead0 with SMTP id adf61e73a8af0-1c2984cf183mr3259304637.47.1720542730457; Tue, 09 Jul 2024 09:32:10 -0700 (PDT) Received: from postal.iol.unh.edu (postal.iol.unh.edu. [2606:4100:3880:1234::84]) by smtp-relay.gmail.com with ESMTPS id 98e67ed59e1d1-2c99a97f16csm481401a91.10.2024.07.09.09.32.10 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Jul 2024 09:32:10 -0700 (PDT) X-Relaying-Domain: iol.unh.edu Received: from iol.unh.edu (unknown [IPv6:2606:4100:3880:1257::1083]) by postal.iol.unh.edu (Postfix) with ESMTP id 22214605C351; Tue, 9 Jul 2024 12:32:09 -0400 (EDT) From: jspewock@iol.unh.edu To: yoan.picchi@foss.arm.com, Honnappa.Nagarahalli@arm.com, thomas@monjalon.net, juraj.linkes@pantheon.tech, paul.szczepanek@arm.com, probb@iol.unh.edu, npratte@iol.unh.edu, Luca.Vizzarro@arm.com, wathsala.vithanage@arm.com Cc: dev@dpdk.org, Jeremy Spewock Subject: [PATCH v1 0/2] dts: add context manager for interactive shells Date: Tue, 9 Jul 2024 12:31:43 -0400 Message-ID: <20240709163145.110030-1-jspewock@iol.unh.edu> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 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 From: Jeremy Spewock This series is extracted from an existing series that expands the scatter test suite. The goal of this patch series is to take this feature that would be useful to other test suites and extract it from the scatter series that does not directly depend on it. This series adds a context manager for managing interactive shells and also adds improved methods of starting and stopping interactive shells through features like a retry when starting the shell and a weakref finalize class to handle garbage collection. Jeremy Spewock (2): dts: add context manager for interactive shells dts: improve starting and stopping interactive shells dts/framework/remote_session/dpdk_shell.py | 9 +- .../remote_session/interactive_shell.py | 171 ++----------- .../single_active_interactive_shell.py | 233 ++++++++++++++++++ dts/framework/remote_session/testpmd_shell.py | 9 +- .../testbed_model/traffic_generator/scapy.py | 2 + dts/tests/TestSuite_pmd_buffer_scatter.py | 26 +- dts/tests/TestSuite_smoke_tests.py | 3 +- 7 files changed, 285 insertions(+), 168 deletions(-) create mode 100644 dts/framework/remote_session/single_active_interactive_shell.py -- 2.45.2