test suite reviews and discussions
 help / color / mirror / Atom feed
From: Jun Dong <junx.dong@intel.com>
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> (raw)

Some enbeded python script in debugger module used 
python v2 syntax style,need update to v3 syntax style.

Signed-off-by: Jun Dong <junx.dong@intel.com>
---
 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


             reply	other threads:[~2022-05-07  8:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-07  8:55 Jun Dong [this message]
2022-05-09  7:39 ` lijuan.tu

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=20220507085530.666-1-junx.dong@intel.com \
    --to=junx.dong@intel.com \
    --cc=dts@dpdk.org \
    --cc=lijuan.tu@intel.com \
    --cc=qingx.sun@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

test suite reviews and discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.dpdk.org/dts/0 dts/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dts dts/ http://inbox.dpdk.org/dts \
		dts@dpdk.org
	public-inbox-index dts

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dts


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git