Mercurial > hg-stable
changeset 40638:c49283e740da
test-commandserver: clean up quoting and location of dbgui extension
This helps embedding '$' in the script.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Thu, 08 Nov 2018 22:25:04 +0900 |
parents | 83dd8c63a0c6 |
children | 83e571ea06a9 |
files | tests/test-commandserver.t |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-commandserver.t Sun Jan 18 17:55:28 2015 +0900 +++ b/tests/test-commandserver.t Thu Nov 08 22:25:04 2018 +0900 @@ -607,7 +607,7 @@ *** runcommand qqueue --active foo - $ cat <<EOF > dbgui.py + $ cat <<'EOF' > ../dbgui.py > import os > import sys > from mercurial import commands, registrar @@ -615,10 +615,10 @@ > command = registrar.command(cmdtable) > @command(b"debuggetpass", norepo=True) > def debuggetpass(ui): - > ui.write(b"%s\\n" % ui.getpass()) + > ui.write(b"%s\n" % ui.getpass()) > @command(b"debugprompt", norepo=True) > def debugprompt(ui): - > ui.write(b"%s\\n" % ui.prompt(b"prompt:")) + > ui.write(b"%s\n" % ui.prompt(b"prompt:")) > @command(b"debugreadstdin", norepo=True) > def debugreadstdin(ui): > ui.write(b"read: %r\n" % sys.stdin.read(1)) @@ -630,7 +630,7 @@ > EOF $ cat <<EOF >> .hg/hgrc > [extensions] - > dbgui = dbgui.py + > dbgui = ../dbgui.py > EOF >>> from hgclient import check, readchannel, runcommand, stringio