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

Issue 10829252: Fix usage of shlex in unit tests on windows. (Closed)

Created:
8 years, 4 months ago by iannucci
Modified:
8 years, 4 months ago
Reviewers:
scottmg
CC:
gyp-developer_googlegroups.com
Visibility:
Public.

Description

Fix usage of shlex in unit tests on windows. When shlex was getting an arg like: r'"some\interesting\path.file" other_file' shlex was turning it into: ['someinterestingpath.file', 'other_file'] Which _happened_ to work, putting 'someinterestingpath.file' in the working directory. This patch doubles up all backslashes prior to splitting, to make the incoming string conform to shlex's expectations R=scottmg Committed: https://code.google.com/p/gyp/source/detail?r=1465

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -9 lines) Patch
M test/intermediate_dir/src/script.py View 1 chunk +1 line, -1 line 0 comments Download
M test/same-rule-output-file-name/src/touch.py View 1 1 chunk +0 lines, -4 lines 0 comments Download
M test/same-target-name-different-directory/src/touch.py View 1 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
iannucci
PTAL
8 years, 4 months ago (2012-08-09 18:13:00 UTC) #1
scottmg
https://chromiumcodereview.appspot.com/10829252/diff/1/test/same-rule-output-file-name/src/touch.py File test/same-rule-output-file-name/src/touch.py (right): https://chromiumcodereview.appspot.com/10829252/diff/1/test/same-rule-output-file-name/src/touch.py#newcode11 test/same-rule-output-file-name/src/touch.py:11: sys.argv[1], = shlex.split(sys.argv[1].replace('\\', '\\\\')) Is the shlex even necessary? ...
8 years, 4 months ago (2012-08-09 18:18:48 UTC) #2
iannucci
On 2012/08/09 18:18:48, scottmg wrote: > https://chromiumcodereview.appspot.com/10829252/diff/1/test/same-rule-output-file-name/src/touch.py > File test/same-rule-output-file-name/src/touch.py (right): > > https://chromiumcodereview.appspot.com/10829252/diff/1/test/same-rule-output-file-name/src/touch.py#newcode11 > ...
8 years, 4 months ago (2012-08-09 18:24:00 UTC) #3
iannucci
On 2012/08/09 18:24:00, iannucci wrote: > On 2012/08/09 18:18:48, scottmg wrote: > > > https://chromiumcodereview.appspot.com/10829252/diff/1/test/same-rule-output-file-name/src/touch.py ...
8 years, 4 months ago (2012-08-09 18:24:54 UTC) #4
iannucci
On 2012/08/09 18:24:54, iannucci wrote: > On 2012/08/09 18:24:00, iannucci wrote: > > On 2012/08/09 ...
8 years, 4 months ago (2012-08-09 18:26:00 UTC) #5
scottmg
On 2012/08/09 18:24:54, iannucci wrote: > On 2012/08/09 18:24:00, iannucci wrote: > > On 2012/08/09 ...
8 years, 4 months ago (2012-08-09 18:26:47 UTC) #6
iannucci
On 2012/08/09 18:26:47, scottmg wrote: > On 2012/08/09 18:24:54, iannucci wrote: > > On 2012/08/09 ...
8 years, 4 months ago (2012-08-09 19:31:02 UTC) #7
scottmg
8 years, 4 months ago (2012-08-09 19:31:51 UTC) #8
> test though. I'll commit as soon as the win32 bot is green.

sgtm

Powered by Google App Engine
This is Rietveld 408576698