From patchwork Wed Apr 27 07:41:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Juraj_Linke=C5=A1?= X-Patchwork-Id: 110300 Return-Path: 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 05BEDA0510; Wed, 27 Apr 2022 09:41:57 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A4FDE427F5; Wed, 27 Apr 2022 09:41:56 +0200 (CEST) Received: from lb.pantheon.sk (lb.pantheon.sk [46.229.239.20]) by mails.dpdk.org (Postfix) with ESMTP id 3DE314113F for ; Wed, 27 Apr 2022 09:41:55 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by lb.pantheon.sk (Postfix) with ESMTP id 677D31C81D7; Wed, 27 Apr 2022 09:41:54 +0200 (CEST) X-Virus-Scanned: amavisd-new at siecit.sk Received: from lb.pantheon.sk ([127.0.0.1]) by localhost (lb.pantheon.sk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mlvJVk0pqjBq; Wed, 27 Apr 2022 09:41:52 +0200 (CEST) Received: from entguard.lab.pantheon.local (unknown [46.229.239.141]) by lb.pantheon.sk (Postfix) with ESMTP id 8D1C11C81C2; Wed, 27 Apr 2022 09:41:52 +0200 (CEST) From: =?utf-8?q?Juraj_Linke=C5=A1?= To: junx.dong@intel.com, lijuan.tu@intel.com, ohilyard@iol.unh.edu Cc: dts@dpdk.org, =?utf-8?q?Juraj_Linke=C5=A1?= Subject: [PATCH v1 1/2] stats_reporter: properly use iterable in for cycle Date: Wed, 27 Apr 2022 07:41:51 +0000 Message-Id: <20220427074152.4144881-1-juraj.linkes@pantheon.tech> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Signed-off-by: Juraj Linkeš Acked-by: Jun Dong --- framework/stats_reporter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/stats_reporter.py b/framework/stats_reporter.py index 80ac942c..1c1ab3fd 100644 --- a/framework/stats_reporter.py +++ b/framework/stats_reporter.py @@ -70,7 +70,7 @@ class StatsReporter(object): "dpdk_version = {}\n".format(self.result.current_dpdk_version(duts[0])) ) else: - for dut in duts(): + for dut in duts: dpdk_version = self.result.current_dpdk_version(dut) self.stats_file.write( "{}.dpdk_version = {}\n".format(dut, dpdk_version) From patchwork Wed Apr 27 07:41:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Juraj_Linke=C5=A1?= X-Patchwork-Id: 110299 Return-Path: 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 9B723A050F; Wed, 27 Apr 2022 09:41:56 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8541A4113F; Wed, 27 Apr 2022 09:41:56 +0200 (CEST) Received: from lb.pantheon.sk (lb.pantheon.sk [46.229.239.20]) by mails.dpdk.org (Postfix) with ESMTP id 395B540E78 for ; Wed, 27 Apr 2022 09:41:55 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by lb.pantheon.sk (Postfix) with ESMTP id 28E871C81D6; Wed, 27 Apr 2022 09:41:54 +0200 (CEST) X-Virus-Scanned: amavisd-new at siecit.sk Received: from lb.pantheon.sk ([127.0.0.1]) by localhost (lb.pantheon.sk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yRQnsosomGBa; Wed, 27 Apr 2022 09:41:53 +0200 (CEST) Received: from entguard.lab.pantheon.local (unknown [46.229.239.141]) by lb.pantheon.sk (Postfix) with ESMTP id E30EA1C81D4; Wed, 27 Apr 2022 09:41:52 +0200 (CEST) From: =?utf-8?q?Juraj_Linke=C5=A1?= To: junx.dong@intel.com, lijuan.tu@intel.com, ohilyard@iol.unh.edu Cc: dts@dpdk.org, =?utf-8?q?Juraj_Linke=C5=A1?= Subject: [PATCH v1 2/2] python: fix shebangs Date: Wed, 27 Apr 2022 07:41:52 +0000 Message-Id: <20220427074152.4144881-2-juraj.linkes@pantheon.tech> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220427074152.4144881-1-juraj.linkes@pantheon.tech> References: <20220427074152.4144881-1-juraj.linkes@pantheon.tech> MIME-Version: 1.0 X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Remove shebangs in __init__.py files as they're not supposed to be executed. Modify the other shebangs so that virtualenvs can be used. Signed-off-by: Juraj Linkeš --- dep/__init__.py | 1 - framework/__init__.py | 1 - main.py | 2 +- nics/__init__.py | 1 - tests/__init__.py | 1 - tools/__init__.py | 1 - vm_images/create_vm_image.py | 2 +- 7 files changed, 2 insertions(+), 7 deletions(-) diff --git a/dep/__init__.py b/dep/__init__.py index ae0043b7..412dbab4 100644 --- a/dep/__init__.py +++ b/dep/__init__.py @@ -1,4 +1,3 @@ -#!/usr/bin/python3 # BSD LICENSE # # Copyright (c) 2021 PANTHEON.tech s.r.o. diff --git a/framework/__init__.py b/framework/__init__.py index ae0043b7..412dbab4 100644 --- a/framework/__init__.py +++ b/framework/__init__.py @@ -1,4 +1,3 @@ -#!/usr/bin/python3 # BSD LICENSE # # Copyright (c) 2021 PANTHEON.tech s.r.o. diff --git a/main.py b/main.py index f4f5e03a..b625cecf 100755 --- a/main.py +++ b/main.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 # BSD LICENSE # # Copyright(c) 2010-2014 Intel Corporation. All rights reserved. diff --git a/nics/__init__.py b/nics/__init__.py index ae0043b7..412dbab4 100644 --- a/nics/__init__.py +++ b/nics/__init__.py @@ -1,4 +1,3 @@ -#!/usr/bin/python3 # BSD LICENSE # # Copyright (c) 2021 PANTHEON.tech s.r.o. diff --git a/tests/__init__.py b/tests/__init__.py index ae0043b7..412dbab4 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,4 +1,3 @@ -#!/usr/bin/python3 # BSD LICENSE # # Copyright (c) 2021 PANTHEON.tech s.r.o. diff --git a/tools/__init__.py b/tools/__init__.py index ae0043b7..412dbab4 100644 --- a/tools/__init__.py +++ b/tools/__init__.py @@ -1,4 +1,3 @@ -#!/usr/bin/python3 # BSD LICENSE # # Copyright (c) 2021 PANTHEON.tech s.r.o. diff --git a/vm_images/create_vm_image.py b/vm_images/create_vm_image.py index 221477bb..4be9630d 100755 --- a/vm_images/create_vm_image.py +++ b/vm_images/create_vm_image.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 import argparse import enum