tests: write the hgrc file for test-hgweb-commands.t with cat instead of echo
authorSteven Brown <StevenGBrown@gmail.com>
Sat, 17 May 2014 17:09:46 +0800
changeset 21485 ec273709c49e
parent 21484 96cdf2e3dbef
child 21486 16352b34e32e
tests: write the hgrc file for test-hgweb-commands.t with cat instead of echo To improve the readability.
tests/test-hgweb-commands.t
--- a/tests/test-hgweb-commands.t	Sat May 17 17:09:10 2014 +0800
+++ b/tests/test-hgweb-commands.t	Sat May 17 17:09:46 2014 +0800
@@ -31,10 +31,13 @@
   $ hg ci -l msg
   $ rm msg
 
-  $ echo [graph] >> .hg/hgrc
-  $ echo default.width = 3 >> .hg/hgrc
-  $ echo stable.width = 3 >> .hg/hgrc
-  $ echo stable.color = FF0000 >> .hg/hgrc
+  $ cat > .hg/hgrc <<EOF
+  > [graph]
+  > default.width = 3
+  > stable.width = 3
+  > stable.color = FF0000
+  > EOF
+
   $ hg serve --config server.uncompressed=False -n test -p $HGPORT -d --pid-file=hg.pid -E errors.log
   $ cat hg.pid >> $DAEMON_PIDS
   $ hg log -G --template '{rev}:{node|short} {desc}\n'