* [dts] [V1] framework/debugger: modify the enbeded python script syntax issue
@ 2022-05-07 8:55 Jun Dong
2022-05-09 7:39 ` lijuan.tu
0 siblings, 1 reply; 2+ messages in thread
From: Jun Dong @ 2022-05-07 8:55 UTC (permalink / raw)
To: dts; +Cc: lijuan.tu, qingx.sun, junx.dong
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-05-09 7:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-07 8:55 [dts] [V1] framework/debugger: modify the enbeded python script syntax issue Jun Dong
2022-05-09 7:39 ` lijuan.tu
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