* [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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).