From: yufengmx <yufengx.mo@intel.com>
To: dts@dpdk.org, lijuan.tu@intel.com, lihongx.ma@intel.com
Cc: yufengmx <yufengx.mo@intel.com>
Subject: [dts] [PATCH V3 3/3] framework: check the python version
Date: Fri, 23 Oct 2020 15:09:59 +0800 [thread overview]
Message-ID: <20201023070959.32951-4-yufengx.mo@intel.com> (raw)
In-Reply-To: <20201023070959.32951-1-yufengx.mo@intel.com>
check the python version of tester. If the version is python2, print a warning message.
Signed-off-by: yufengmx <yufengx.mo@intel.com>
---
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
prev parent reply other threads:[~2020-10-23 7:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-23 7:09 [dts] [PATCH V3 0/3] " yufengmx
2020-10-23 7:09 ` [dts] [PATCH V3 1/3] " yufengmx
2020-10-23 7:51 ` Ma, LihongX
2020-10-23 7:09 ` [dts] [PATCH V3 2/3] " yufengmx
2020-10-23 7:09 ` yufengmx [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201023070959.32951-4-yufengx.mo@intel.com \
--to=yufengx.mo@intel.com \
--cc=dts@dpdk.org \
--cc=lihongx.ma@intel.com \
--cc=lijuan.tu@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).