suites: Add ussd support to interactive shell test

Change-Id: I055f2b9de56da8d956c3e4944f6600dea2ee5578
diff --git a/suites/debug/interactive.py b/suites/debug/interactive.py
index 1b89a7d..d5f7615 100755
--- a/suites/debug/interactive.py
+++ b/suites/debug/interactive.py
@@ -16,7 +16,7 @@
   m.connect(nitb.mcc_mnc())
 
 while True:
-  cmd = prompt('Enter command: (q)uit (s)ms (g)et-registered (w)ait-registered, call-list [<ms_msisdn>], call-dial <src_msisdn> <dst_msisdn>, call-wait-incoming <src_msisdn> <dst_msisdn>, call-answer <mt_msisdn> <call_id>, call-hangup <ms_msisdn> <call_id>')
+  cmd = prompt('Enter command: (q)uit (s)ms (g)et-registered (w)ait-registered, call-list [<ms_msisdn>], call-dial <src_msisdn> <dst_msisdn>, call-wait-incoming <src_msisdn> <dst_msisdn>, call-answer <mt_msisdn> <call_id>, call-hangup <ms_msisdn> <call_id>, ussd <command>')
   cmd = cmd.strip().lower()
 
   if not cmd:
@@ -96,5 +96,15 @@
         print('hanging up %s %r' % (ms.name(), call_id))
         ms.call_hangup(call_id)
 
+  elif cmd.startswith('ussd'):
+    if len(params) != 2:
+      print('wrong format')
+      continue
+    ussd_cmd = params[1]
+    for ms in modems:
+        print('modem %s: ussd %s' % (ms.name(), ussd_cmd))
+        response = ms.ussd_send(ussd_cmd)
+        print('modem %s: response=%r' % (ms.name(), response))
+
   else:
       print('Unknown command: %s' % cmd)