# HG changeset patch # User Yuya Nishihara # Date 2018-11-08 13:25:04 # Node ID c49283e740daf359dc7fde6ff98246442dad1ab4 # Parent 83dd8c63a0c6c2bddee10b9d7f66cec5a0486567 test-commandserver: clean up quoting and location of dbgui extension This helps embedding '$' in the script. diff --git a/tests/test-commandserver.t b/tests/test-commandserver.t --- a/tests/test-commandserver.t +++ b/tests/test-commandserver.t @@ -607,7 +607,7 @@ changelog and manifest would have invali *** runcommand qqueue --active foo - $ cat < dbgui.py + $ cat <<'EOF' > ../dbgui.py > import os > import sys > from mercurial import commands, registrar @@ -615,10 +615,10 @@ changelog and manifest would have invali > 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 @@ changelog and manifest would have invali > EOF $ cat <> .hg/hgrc > [extensions] - > dbgui = dbgui.py + > dbgui = ../dbgui.py > EOF >>> from hgclient import check, readchannel, runcommand, stringio