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

Issue 6792029: Convert drover.py to subprocess2. (Closed)

Created:
9 years, 8 months ago by M-A Ruel
Modified:
9 years, 7 months ago
CC:
chromium-reviews, Dirk Pranke
Visibility:
Public.

Description

Convert drover.py to subprocess2. R=dpranke@chromium.org BUG= TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=80453

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -18 lines) Patch
M drover.py View 6 chunks +11 lines, -18 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
M-A Ruel
9 years, 8 months ago (2011-04-04 19:22:54 UTC) #1
Dirk Pranke
LGTM.
9 years, 8 months ago (2011-04-04 19:28:46 UTC) #2
commit-bot: I haz the power
Presubmit check for 6792029-1 failed and returned exit status 1. Running presubmit commit checks ...
9 years, 8 months ago (2011-04-04 19:36:13 UTC) #3
commit-bot: I haz the power
Presubmit check for 6792029-1 failed and returned exit status 1. Running presubmit commit checks ...
9 years, 8 months ago (2011-04-04 19:41:33 UTC) #4
M-A Ruel
Sorry for the noise, I'm trying where the stale subprocess2.pyc is getting loaded from.
9 years, 8 months ago (2011-04-04 19:45:48 UTC) #5
commit-bot: I haz the power
Presubmit check for 6792029-1 failed and returned exit status -9. The presubmit check was hung. ...
9 years, 8 months ago (2011-04-04 20:53:50 UTC) #6
dglazkov
This broke drover. Apparently, drover always uses hard-coded chromium repo URL, and pre-conversion, it would ...
9 years, 8 months ago (2011-04-15 19:58:52 UTC) #7
M-A Ruel
9 years, 8 months ago (2011-04-15 20:03:02 UTC) #8
On 2011/04/15 19:58:52, Dimitri Glazkov wrote:
> This broke drover. Apparently, drover always uses hard-coded chromium repo
URL,
> and pre-conversion, it would fail silently. Post-conversion, it's throws an
> exception:
> 
> Traceback (most recent call last):
>   File "d:\depot_tools\drover.py", line 553, in <module>
>     sys.exit(main())
>   File "d:\depot_tools\drover.py", line 549, in main
>     return drover(options, args)
>   File "d:\depot_tools\drover.py", line 444, in drover
>     checkoutRevision(url, revision, branch_url)
>   File "d:\depot_tools\drover.py", line 166, in checkoutRevision
>     export_map = getBestExportPathsMap2(files_info, revision)
>   File "d:\depot_tools\drover.py", line 314, in getBestExportPathsMap2
>     revision)):
>   File "d:\depot_tools\drover.py", line 100, in isSVNDirectory
>     info = getSVNInfo(url, revision)
>   File "d:\depot_tools\drover.py", line 68, in getSVNInfo
>     ['svn', 'info', '%s@%s' % (url, revision)]).splitlines()

need to replace check_output() with capture().

I don't have access to a box until Monday if someone wamts to fix it before.


>   File "d:\depot_tools\subprocess2.py", line 289, in check_output
>     return check_call(args, **kwargs)[0]
>   File "d:\depot_tools\subprocess2.py", line 251, in check_call
>     returncode, args, kwargs.get('cwd'), out[0], out[1])
> subprocess2.CalledProcessError: Command svn info
> svn://svn.chromium.org/chrome/trunk/LayoutTests/fast/files/blob-slice-t
> est-expected.txt@83873 returned non-zero exit status 1
> svn: No such revision 83873

Powered by Google App Engine
This is Rietveld 408576698