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 7809EA052A; Fri, 10 Jul 2020 12:12:06 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D88201DC44; Fri, 10 Jul 2020 12:11:16 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id E306A1DBA8 for ; Fri, 10 Jul 2020 12:11:12 +0200 (CEST) IronPort-SDR: FT6li7WZ1uKl4Fk1An7z336QjI8GGmHONkutkVAC4rKTPfWnO4he/etcRdRZEp/icerstk2w5D VWib9nxVi+aQ== X-IronPort-AV: E=McAfee;i="6000,8403,9677"; a="136380964" X-IronPort-AV: E=Sophos;i="5.75,335,1589266800"; d="scan'208";a="136380964" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jul 2020 03:11:12 -0700 IronPort-SDR: p0b/GbnCraE48JQyg1tFr368pFxMDW9bGtUtyEe9po14NUL0fg1r0ZUa28fXLSf3394xo5BRFf EpXbsdJKTj+w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,335,1589266800"; d="scan'208";a="298384634" Received: from silpixa00389033.ir.intel.com (HELO silpixa00389033.ger.corp.intel.com) ([10.237.223.171]) by orsmga002.jf.intel.com with ESMTP; 10 Jul 2020 03:11:11 -0700 From: Louise Kilheeney To: dev@dpdk.org Cc: david.marchand@redhat.com, bruce.richardson@intel.com, Louise Kilheeney , Nicolas Chautru Date: Fri, 10 Jul 2020 11:10:54 +0100 Message-Id: <20200710101055.33671-9-louise.kilheeney@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200710101055.33671-1-louise.kilheeney@intel.com> References: <20200710101055.33671-1-louise.kilheeney@intel.com> Subject: [dpdk-dev] [PATCH 8/9] app/test-bbdev: python3 compatibility changes X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" use of the print function required for python3 compatibility. Cc: Nicolas Chautru Signed-off-by: Louise Kilheeney --- app/test-bbdev/test-bbdev.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/test-bbdev/test-bbdev.py b/app/test-bbdev/test-bbdev.py index 0194be046..e127fb2eb 100755 --- a/app/test-bbdev/test-bbdev.py +++ b/app/test-bbdev/test-bbdev.py @@ -3,6 +3,7 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2017 Intel Corporation +from __future__ import print_function import sys import os import argparse @@ -12,7 +13,7 @@ from threading import Timer def kill(process): - print "ERROR: Test app timed out" + print("ERROR: Test app timed out") process.kill() if "RTE_SDK" in os.environ: @@ -66,7 +67,7 @@ def kill(process): args = parser.parse_args() if not os.path.exists(args.testapp_path): - print "No such file: " + args.testapp_path + print("No such file: " + args.testapp_path) sys.exit(1) params = [args.testapp_path] -- 2.17.1