windows: use raw string in test log paths
authorRaphaël Gomès <rgomes@octobus.net>
Fri, 22 Oct 2021 09:45:35 +0200
changeset 48293 7a4d187479b6
parent 48292 aad84024660f
child 48294 e2836d08c88c
windows: use raw string in test log paths Otherwise the backslashes will work as escapes on Windows and break everything. Differential Revision: https://phab.mercurial-scm.org/D11725
tests/test-fix.t
--- a/tests/test-fix.t	Fri Oct 29 14:40:46 2021 +0200
+++ b/tests/test-fix.t	Fri Oct 22 09:45:35 2021 +0200
@@ -1785,7 +1785,7 @@
   $ cat >> $LOGGER <<EOF
   > # Appends the input file's name to the log file.
   > import sys
-  > with open('$LOGFILE', 'a') as f:
+  > with open(r'$LOGFILE', 'a') as f:
   >     f.write(sys.argv[1] + '\n')
   > sys.stdout.write(sys.stdin.read())
   > EOF