From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 8628E2BE1 for ; Fri, 12 Jan 2018 07:06:50 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Jan 2018 22:06:49 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,347,1511856000"; d="scan'208";a="26548194" Received: from juan.sh.intel.com ([10.67.119.88]) by orsmga002.jf.intel.com with ESMTP; 11 Jan 2018 22:06:48 -0800 From: Lijuan Tu To: dts@dpdk.org Cc: Lijuan Tu Date: Fri, 12 Jan 2018 22:42:36 +0800 Message-Id: <1515768156-3872-1-git-send-email-lijuanx.a.tu@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dts] [PATCH] framework/virt_dut: fix call errors. 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: , X-List-Received-Date: Fri, 12 Jan 2018 06:06:50 -0000 Signed-off-by: Lijuan Tu --- framework/virt_dut.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/framework/virt_dut.py b/framework/virt_dut.py index 83f661d..62688dc 100644 --- a/framework/virt_dut.py +++ b/framework/virt_dut.py @@ -123,7 +123,7 @@ class VirtDut(DPDKdut): for key in self.ports_cfg.keys(): index = int(key) if index >= port_num: - print utils.RED("Can not found [%d ]port info" % index) + print RED("Can not found [%d ]port info" % index) continue if 'peer' in self.ports_cfg[key].keys(): @@ -226,7 +226,7 @@ class VirtDut(DPDKdut): total_phycores = socks * cores # cores should match cpu_topo if total != len(cpuinfo): - print utils.RED("Core number not matched!!!") + print RED("Core number not matched!!!") else: for core in range(total): thread = core / total_phycores @@ -394,7 +394,7 @@ class VirtDut(DPDKdut): vfs = remoteport.get_sriov_vfs_pci() # if hostpci is vf of tester port if hostpci == remotepci or hostpci in vfs: - print utils.RED("Skip ping from same PF device") + print RED("Skip ping from same PF device") continue ipv6 = self.get_ipv6_address(vmPort) -- 1.8.3.1