From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 60540A04B7; Wed, 14 Oct 2020 09:19:14 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 289171DCAE; Wed, 14 Oct 2020 09:19:12 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 1A0071DC67 for ; Wed, 14 Oct 2020 09:19:09 +0200 (CEST) IronPort-SDR: wp3KVw8z1lyd3wtBrGFfss+s2UsyYsTjeyx79X0d17cWD9ka4Yrhd5VRhi3JpqFkskP0y1qr71 PJbzc42VlMNg== X-IronPort-AV: E=McAfee;i="6000,8403,9773"; a="145364907" X-IronPort-AV: E=Sophos;i="5.77,374,1596524400"; d="scan'208";a="145364907" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Oct 2020 00:19:08 -0700 IronPort-SDR: P7D9u0u9wMXhuBwhIYeni/9dm5wErBWCxpuCAIDMcGk1dJHpMYsUwGL4FXpN03ZTsx2KDUrskt mMnVFnralGRg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,373,1596524400"; d="scan'208";a="530719503" Received: from dpdk-moyufen06.sh.intel.com ([10.67.116.208]) by orsmga005.jf.intel.com with ESMTP; 14 Oct 2020 00:19:07 -0700 From: yufengmx To: dts@dpdk.org, lihongx.ma@intel.com Cc: yufengmx Date: Wed, 14 Oct 2020 15:14:48 +0800 Message-Id: <20201014071448.32119-4-yufengx.mo@intel.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20201014071448.32119-1-yufengx.mo@intel.com> References: <20201014071448.32119-1-yufengx.mo@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH V2 3/3] framework: check the python version X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 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 Sender: "dts" check the python version of tester. If the version is python2, print a warning message. Signed-off-by: yufengmx --- framework/tester.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/framework/tester.py b/framework/tester.py index ca179b2..482b0e4 100644 --- a/framework/tester.py +++ b/framework/tester.py @@ -43,7 +43,8 @@ from crb import Crb from net_device import GetNicObj from etgen import IxiaPacketGenerator, SoftwarePacketGenerator import random -from utils import GREEN, convert_int2ip, convert_ip2int +from utils import (GREEN, convert_int2ip, convert_ip2int, + check_crb_python_version) from exception import ParameterInvalidException from multiprocessing import Process from pktgen import getPacketGenerator @@ -66,6 +67,8 @@ class Tester(Crb): self.NAME = 'tester' self.scapy_session = None super(Tester, self).__init__(crb, serializer, self.NAME) + # check the python version of tester + check_crb_python_version(self) self.bgProcIsRunning = False self.duts = None -- 2.21.0