tests/test-commandserver.t
changeset 40593 6f0941f4a184
parent 40592 83e571ea06a9
child 40594 234c2d8c9e48
--- a/tests/test-commandserver.t	Sun Nov 04 12:17:20 2018 +0900
+++ b/tests/test-commandserver.t	Sun Nov 04 12:38:49 2018 +0900
@@ -762,10 +762,15 @@
   ... def prompt(server):
   ...     readchannel(server)
   ...     interactive = [b'--config', b'ui.interactive=True']
+  ...     runcommand(server, [b'debuggetpass'] + interactive,
+  ...                input=stringio(b'1234\n'))
   ...     runcommand(server, [b'debugprompt'] + interactive,
   ...                input=stringio(b'5678\n'))
   ...     runcommand(server, [b'debugpromptchoice'] + interactive,
   ...                input=stringio(b'n\n'))
+  *** runcommand debuggetpass --config ui.interactive=True
+  message: '\xa3DdataJpassword: Hpassword\xf5DtypeFprompt'
+  1234
   *** runcommand debugprompt --config ui.interactive=True
   message: '\xa3DdataGprompt:GdefaultAyDtypeFprompt'
    5678