Message ID | 20240619133526.28614-1-juraj.linkes@pantheon.tech (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 18349454A8; Wed, 19 Jun 2024 15:37:03 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9F4AE40289; Wed, 19 Jun 2024 15:37:02 +0200 (CEST) Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) by mails.dpdk.org (Postfix) with ESMTP id CD2CD4021D for <dev@dpdk.org>; Wed, 19 Jun 2024 15:35:29 +0200 (CEST) Received: by mail-ej1-f45.google.com with SMTP id a640c23a62f3a-a6f0c3d0792so788292566b.3 for <dev@dpdk.org>; Wed, 19 Jun 2024 06:35:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pantheon.tech; s=google; t=1718804129; x=1719408929; 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=94NreHqkHB0w3pFe0imyqDgFdOo+nsPEQgtnyc7ruHE=; b=rDPnyYGj9GU5+a4iI2jPXJEguARalYShdd0NkAJwXCt94nXik/osqYAB9KWf6mg7Em rBDdCM17PuqIOJDsKWgtdYrPkHfJ/ZCptf6iTkzUFmMgvHSzKReJ1Tl6wnPoHs0yZJ32 0cTII0NEbmrYfVDOhxBmR9LmVGYenAv9atTpHTW54MFSibwYF6XkXK4YfpownU3PCmU2 hF7LLOfPc2wQtGnr83g1mH6cvJE4umGc+dfo7rnZ5TI5dDsJxyvzUvbIp49283LnRIjq 7gqHqhXBwGyC7a3BVD4GPw00ObcAJ0N3qphaUiVhbh5Qn2RRuBrrARXIlGND9L79XBTE G0hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718804129; x=1719408929; 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=94NreHqkHB0w3pFe0imyqDgFdOo+nsPEQgtnyc7ruHE=; b=Nr16HUtqXx7bwl715H1AQMJq53tHMgkmfn/kGQ3h4joyiFa3P/82K9RbhgYs5lkZ5X zizS3G8cmvJIFsoTx/jRAunXMht2TRsoAhB6S7bN4/xicyvCaF5+4WkPIFKLcvYT/Co0 vQvQLTnNZ1wvQltVTeBq/f7tVSiGRGJO1kHZJrG/h8zRu7kiY+KKTxR4CG5+cZBDwABz NiVnHwAVUZNbeel8l+dwdnB9VyH6FnGPcDr7NeiBCYc0T3n/KLwTdED+3wUdsJ9RrZxz depdet6VQ8Zb2MTLSS0TlUH8B+rJVFkaNqiTozeeCSWU1CH7ph665xQ3xxbePLcur3Lu DF/g== X-Gm-Message-State: AOJu0Yyu2CniQNsrK7m+xD+l3Troh5dO9phNingqnve7OQD/BDmHWdDr vs07E0qaaZ7e62uXWOsDnJ/0Pl5BZq2F0wlyz6DHcdLz07UaR19i79+WNlM9M20= X-Google-Smtp-Source: AGHT+IFZc6jNp7pZTJ+K3R+N2UYJXaElQ+lab6cRJ5XDt+qtE8bwZI9qnspduVCXBeVYT1iNsVKIVA== X-Received: by 2002:a17:907:a802:b0:a6f:b3bb:9249 with SMTP id a640c23a62f3a-a6fb3bb94a2mr142327366b.22.1718804129295; Wed, 19 Jun 2024 06:35:29 -0700 (PDT) Received: from localhost.localdomain ([84.245.121.236]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6f56da3fe5sm676723566b.18.2024.06.19.06.35.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jun 2024 06:35:28 -0700 (PDT) From: =?utf-8?q?Juraj_Linke=C5=A1?= <juraj.linkes@pantheon.tech> To: thomas@monjalon.net, Honnappa.Nagarahalli@arm.com, jspewock@iol.unh.edu, probb@iol.unh.edu, paul.szczepanek@arm.com, Luca.Vizzarro@arm.com, npratte@iol.unh.edu Cc: dev@dpdk.org, =?utf-8?q?Juraj_Linke=C5=A1?= <juraj.linkes@pantheon.tech> Subject: [PATCH v2 0/5] node and inheritance improvements Date: Wed, 19 Jun 2024 15:35:21 +0200 Message-Id: <20240619133526.28614-1-juraj.linkes@pantheon.tech> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240423091252.62924-1-juraj.linkes@pantheon.tech> References: <20240423091252.62924-1-juraj.linkes@pantheon.tech> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org |
Series | node and inheritance improvements | |
Message
Juraj Linkeš
June 19, 2024, 1:35 p.m. UTC
There are two areas that are unified: The super() calls, where the arguments were removed as they're not needed in single inheritance. The classes derived from object don't need to explicitly state that. The tg node execution setup and teardown was omitted and is fixed in this series. And probably the most important part if the cleanup of execution and build target setup and teardown. Build targets are relevant only for sut nodes, so it's been moved there, same for vdevs. The execution setup/teardown code was modified so that subclasses use super() to extend the base methods. v5: Rebase on top of 32115 and add clean up close to the series. Depends-on: series-32115 ("dts: rename execution to test run") Juraj Linkeš (5): dts: add tg node test run setup and teardown dts: unify class inheritance from object dts: unify super calls dts: refine pre-test setup and teardown steps dts: clean up close in remote session .../remote_session/remote_session.py | 21 ++---- dts/framework/remote_session/ssh_session.py | 11 ++-- dts/framework/remote_session/testpmd_shell.py | 2 +- dts/framework/runner.py | 2 + dts/framework/test_result.py | 16 ++--- dts/framework/test_suite.py | 2 +- dts/framework/testbed_model/cpu.py | 4 +- dts/framework/testbed_model/node.py | 66 ++----------------- dts/framework/testbed_model/os_session.py | 12 ++-- dts/framework/testbed_model/sut_node.py | 53 ++++++++++----- dts/framework/testbed_model/tg_node.py | 4 +- dts/framework/testbed_model/virtual_device.py | 2 +- dts/framework/utils.py | 4 +- 13 files changed, 76 insertions(+), 123 deletions(-)
Comments
> Juraj Linkeš (5): > dts: add tg node test run setup and teardown > dts: unify class inheritance from object > dts: unify super calls > dts: refine pre-test setup and teardown steps > dts: clean up close in remote session Applied, thanks.