Mercurial > hg
diff tests/test-commandserver.py @ 20631:5d4606bec54c
cmdserver: mask return code of runcommand in the same way as dispatch.run
"hg help" does not state that the code for abort is 255, but it's confusing
to have different code between hg command and command server.
Tests of python-hglib 1.2 passed with this change.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Mon, 03 Mar 2014 15:50:51 +0900 |
parents | 0b04ee8e789d |
children | 9524938c8ff8 |
line wrap: on
line diff
--- a/tests/test-commandserver.py Mon Mar 03 15:50:48 2014 +0900 +++ b/tests/test-commandserver.py Mon Mar 03 15:50:51 2014 +0900 @@ -104,6 +104,9 @@ # make sure --config doesn't stick runcommand(server, ['id']) + # negative return code should be masked + runcommand(server, ['id', '-runknown']) + def inputeof(server): readchannel(server) server.stdin.write('runcommand\n')