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 80CD2455FE; Thu, 11 Jul 2024 18:34:38 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7298E42E63; Thu, 11 Jul 2024 18:34:38 +0200 (CEST) Received: from mail-oi1-f226.google.com (mail-oi1-f226.google.com [209.85.167.226]) by mails.dpdk.org (Postfix) with ESMTP id 70EF242E60 for ; Thu, 11 Jul 2024 18:34:36 +0200 (CEST) Received: by mail-oi1-f226.google.com with SMTP id 5614622812f47-3d6301e7279so654727b6e.3 for ; Thu, 11 Jul 2024 09:34:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iol.unh.edu; s=unh-iol; t=1720715675; x=1721320475; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=DLTh0PR1n+PHCbabAqBNfxFGe0MLTH5nr3bdB8weStc=; b=VktdvaLKbRt5zhpCvxTbbBTy9vF0nE5rL53jdoiSd4kfMEiGOFqFiW2+5v1hWA6+ak AzTNMtJdh0oXGhgvEK99dzZ6j7rLQ0W5M2JyJeQQCO8NQthAkwtnQwrD60U29Hr0XciG zsO8n5aPO/NL79fX4uE1CJ30VAb/SmzscFZJQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720715675; x=1721320475; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=DLTh0PR1n+PHCbabAqBNfxFGe0MLTH5nr3bdB8weStc=; b=TwgdQyA55OWtmXrRU4Vjl6KSgeUoRyYLPlqNa//W+uc3MOU/dZ2xJgEMf1YumT6OKD XuoqUZTfk7A/c7QduwRciGgS/obcmZwKi4k5GyyUqi36hWMQw+a0Dfr+28R6iv8AJzN3 dvl4tRSoLX03It0PYy9QgqKigjvtVKJbZqEk8RAsWPy3oxzWjnqbHKCEpZPS03cjqyxf 2Q2tbjQZ4BGN+qQb370YTz6oWa2LuaKYdpxCSuiuYkyQfOsYjkya5m+F6giCpkbQ4ORm rMkaom46c24mJ5kJeeuX3XTA5eJk3yAwj03qh5zQvY9R8jwJZCwbFWHoPJFGDG3GpRBI Pf0Q== X-Gm-Message-State: AOJu0YyjwUZxenAayi86Rrr8jW2uth+ZTzu7m9rXOTclmmjG8YXIrDmS ZOYRsGYd88g2Sb6lEoB3RSfMz95Z1JNhD734uJDXhxqjLnqma3jQDqZdVSJmIFgw1xxJEAOMHEQ 60/b+Pqxu6kzqwq+zTAp/jPRYyIFouGpw X-Google-Smtp-Source: AGHT+IGhf4EGk/9goTR1iRbk9k8VIaP0AwJ2kIkHDmGXWjiezJJapN08kugSto9LTuN1UYoXy6xBXMJPaWCt X-Received: by 2002:a05:6808:1413:b0:3d2:1fdd:286f with SMTP id 5614622812f47-3d93c0ab893mr11629640b6e.49.1720715675572; Thu, 11 Jul 2024 09:34:35 -0700 (PDT) Received: from postal.iol.unh.edu (postal.iol.unh.edu. [132.177.123.84]) by smtp-relay.gmail.com with ESMTPS id 6a1803df08f44-6b61ba2bcb0sm4081586d6.40.2024.07.11.09.34.35 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Jul 2024 09:34:35 -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 BBF93605C380; Thu, 11 Jul 2024 12:34:34 -0400 (EDT) From: jspewock@iol.unh.edu To: yoan.picchi@foss.arm.com, wathsala.vithanage@arm.com, Honnappa.Nagarahalli@arm.com, npratte@iol.unh.edu, probb@iol.unh.edu, juraj.linkes@pantheon.tech, Luca.Vizzarro@arm.com, paul.szczepanek@arm.com, thomas@monjalon.net Cc: dev@dpdk.org, Jeremy Spewock Subject: [PATCH v2 0/2] dts: add context manager Date: Thu, 11 Jul 2024 12:34:08 -0400 Message-ID: <20240711163410.89017-1-jspewock@iol.unh.edu> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240709163145.110030-1-jspewock@iol.unh.edu> References: <20240709163145.110030-1-jspewock@iol.unh.edu> 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 v2: * addresses the comments from version 1, adjusting documentation accordingly and condensing usage of the context manager. 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 | 4 +- 7 files changed, 284 insertions(+), 170 deletions(-) create mode 100644 dts/framework/remote_session/single_active_interactive_shell.py -- 2.45.2