tests: don't assume that echo will unescape \\
authorJoerg Sonnenberger <joerg@bec.de>
Thu, 09 Apr 2020 20:02:32 +0200
changeset 5320 1227553f82c6
parent 5319 6a4a65edecdc
child 5321 aca826b5bd4d
tests: don't assume that echo will unescape \\
tests/testlib/push-checkheads-util.sh
--- a/tests/testlib/push-checkheads-util.sh	Thu Apr 09 19:52:30 2020 +0200
+++ b/tests/testlib/push-checkheads-util.sh	Thu Apr 09 20:02:32 2020 +0200
@@ -34,6 +34,6 @@
 
         echo >> "client/.hg/hgrc" "[ui]"
         echo >> "client/.hg/hgrc" "# simpler log output"
-        echo >> "client/.hg/hgrc" 'logtemplate = "{node|short} [{branch}{if(topic, ":{topic}")}] ({phase}): {desc}\\n"'
+        printf >> "client/.hg/hgrc" "%s" 'logtemplate = "{node|short} [{branch}{if(topic, ":{topic}")}] ({phase}): {desc}\n"'
     fi
 }