From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 461A4A050A; Sat, 7 May 2022 10:55:45 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 49E184068A; Sat, 7 May 2022 10:55:44 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id 9A08A40395 for ; Sat, 7 May 2022 10:55:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651913742; x=1683449742; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=RFeMuMnfWSfeTojp+IDyLcqg40cdlujPlX9NToEW7FI=; b=Fx3e5QIJNNmUBM67PyHmPLp2Hv5sQ93SV5GjKndUwi1M2+c1p8/EpnqO fujoU6Ivlk9DK4VI+4HOW9rLwPPM8XJOMZG1J6gihSX/J/gnLYK2qhYK6 m8W9wqzv0lP8rfX/diHZYnncdq7D9/ndd19uf7jdzn6l2V0yP8DVdYPN8 SqVvJkRUhbSu1+n7Ea4b9YzG5NbkmFB536irdyJTRoN2koUBLHT2kz4td itzivEUrXDEGTr25Qi7NFJ/UhGWZNn7yQ77BTb9Q1Kzyo61vsXvDFKOpK atRpbksqpMVDl+XhZBw4MRTEKsve0HhqkBoJK+atMot/eo7Q5N44AenPr g==; X-IronPort-AV: E=McAfee;i="6400,9594,10339"; a="248586868" X-IronPort-AV: E=Sophos;i="5.91,206,1647327600"; d="scan'208";a="248586868" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 May 2022 01:55:40 -0700 X-IronPort-AV: E=Sophos;i="5.91,206,1647327600"; d="scan'208";a="655055376" Received: from shwdenpg197.ccr.corp.intel.com ([10.253.109.70]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 May 2022 01:55:38 -0700 From: Jun Dong To: dts@dpdk.org Cc: lijuan.tu@intel.com, qingx.sun@intel.com, junx.dong@intel.com Subject: [dts] [V1] framework/debugger: modify the enbeded python script syntax issue Date: Sat, 7 May 2022 16:55:30 +0800 Message-Id: <20220507085530.666-1-junx.dong@intel.com> X-Mailer: git-send-email 2.33.1.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Some enbeded python script in debugger module used python v2 syntax style,need update to v3 syntax style. Signed-off-by: Jun Dong --- framework/debugger.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/framework/debugger.py b/framework/debugger.py index bca4f805..2f6e121f 100644 --- a/framework/debugger.py +++ b/framework/debugger.py @@ -40,17 +40,17 @@ AliveCase = None # global case name for run command def help_command(): - console.push("print 'Help on debug module'") - console.push("print 'DESCRIPTION'") - console.push("print 'DTS debug module support few debug commands'") - console.push("print ' - help(): help messages'") - console.push("print ' - list(): list all connections'") - console.push("print ' - connect(): bind to specified connection'") - console.push("print ' - : connect(\"dut\")'") - console.push("print ' - quit(): quit debug module'") - console.push("print ' - exit(): exit processing procedure'") - console.push("print ' - debug(): call python debug module for further debug'") - console.push("print ' - rerun(): re-run the interrupted test case'") + console.push("print('Help on debug module')") + console.push("print('DESCRIPTION')") + console.push("print('DTS debug module support few debug commands')") + console.push("print(' - help(): help messages')") + console.push("print(' - list(): list all connections')") + console.push("print(' - connect(): bind to specified connection')") + console.push("print(' - : connect(\"dut\")')") + console.push("print(' - quit(): quit debug module')") + console.push("print(' - exit(): exit processing procedure')") + console.push("print(' - debug(): call python debug module for further debug')") + console.push("print(' - rerun(): re-run the interrupted test case')") def list_command(): @@ -62,7 +62,7 @@ def list_command(): for connection in CONNECTIONS: for name, session in list(connection.items()): - console.push("print 'connect %d: %10s'" % (index, name)) + console.push("print('connect %d: %10s')" % (index, name)) index += 1 -- 2.33.1.windows.1