Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(830)

Unified Diff: test/same-target-name-different-directory/src/touch.py

Issue 10829252: Fix usage of shlex in unit tests on windows. (Closed) Base URL: http://gyp.googlecode.com/svn/trunk/
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: test/same-target-name-different-directory/src/touch.py
===================================================================
--- test/same-target-name-different-directory/src/touch.py (revision 1452)
+++ test/same-target-name-different-directory/src/touch.py (working copy)
@@ -8,7 +8,7 @@
import sys
# Trim quotes
-sys.argv[1], = shlex.split(sys.argv[1])
+sys.argv[1], = shlex.split(sys.argv[1].replace('\\', '\\\\'))
f = open(sys.argv[1], 'w+')
f.write('Hello from touch.py\n')
« test/same-rule-output-file-name/src/touch.py ('K') | « test/same-rule-output-file-name/src/touch.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698