tests/test-commandserver.t
branchstable
changeset 44373 98c14f0108b8
parent 42893 34a46d48d24e
child 45057 d6e99a446eea
equal deleted inserted replaced
44332:69b091cdc506 44373:98c14f0108b8
   652   ...                         b'ui.interactive=True'],
   652   ...                         b'ui.interactive=True'],
   653   ...                input=stringio(b''))
   653   ...                input=stringio(b''))
   654   ...     runcommand(server, [b'debugprompt', b'--config',
   654   ...     runcommand(server, [b'debugprompt', b'--config',
   655   ...                         b'ui.interactive=True'],
   655   ...                         b'ui.interactive=True'],
   656   ...                input=stringio(b'5678\n'))
   656   ...                input=stringio(b'5678\n'))
       
   657   ...     runcommand(server, [b'debugprompt', b'--config',
       
   658   ...                         b'ui.interactive=True'],
       
   659   ...                input=stringio(b'\nremainder\nshould\nnot\nbe\nread\n'))
   657   ...     runcommand(server, [b'debugreadstdin'])
   660   ...     runcommand(server, [b'debugreadstdin'])
   658   ...     runcommand(server, [b'debugwritestdout'])
   661   ...     runcommand(server, [b'debugwritestdout'])
   659   *** runcommand debuggetpass --config ui.interactive=True
   662   *** runcommand debuggetpass --config ui.interactive=True
   660   password: 1234
   663   password: 1234
   661   *** runcommand debuggetpass --config ui.interactive=True
   664   *** runcommand debuggetpass --config ui.interactive=True
   663   *** runcommand debuggetpass --config ui.interactive=True
   666   *** runcommand debuggetpass --config ui.interactive=True
   664   password: abort: response expected
   667   password: abort: response expected
   665    [255]
   668    [255]
   666   *** runcommand debugprompt --config ui.interactive=True
   669   *** runcommand debugprompt --config ui.interactive=True
   667   prompt: 5678
   670   prompt: 5678
       
   671   *** runcommand debugprompt --config ui.interactive=True
       
   672   prompt: y
   668   *** runcommand debugreadstdin
   673   *** runcommand debugreadstdin
   669   read: ''
   674   read: ''
   670   *** runcommand debugwritestdout
   675   *** runcommand debugwritestdout
   671   low-level stdout fd and
   676   low-level stdout fd and
   672   stdout should be redirected to stderr
   677   stdout should be redirected to stderr