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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « test/same-rule-output-file-name/src/touch.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 2
3 # Copyright (c) 2012 Google Inc. All rights reserved. 3 # Copyright (c) 2012 Google Inc. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 import shlex
8 import sys 7 import sys
9 8
10 # Trim quotes
11 sys.argv[1], = shlex.split(sys.argv[1])
12
13 f = open(sys.argv[1], 'w+') 9 f = open(sys.argv[1], 'w+')
14 f.write('Hello from touch.py\n') 10 f.write('Hello from touch.py\n')
15 f.close() 11 f.close()
OLDNEW
« no previous file with comments | « 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