Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 11039026: Use a subprocess wrapper that will throw if a command returns a non-zero result code (Closed)

Created:
July 4, 2013, 7:18 a.m. by Wladimir Palant
Modified:
July 4, 2013, 8:54 a.m.
Visibility:
Public.

Description

Use a subprocess wrapper that will throw if a command returns a non-zero result code

Patch Set 1 #

Patch Set 2 : Same thing without a custom wrapper #

Patch Set 3 : Restored stderr redirection in autotest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -4 lines) Patch
M abp_rewrite.py View 1 1 chunk +1 line, -3 lines 0 comments Download
M autotest.py View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4
Wladimir Palant
July 4, 2013, 7:18 a.m. (2013-07-04 07:18:03 UTC) #1
Wladimir Palant
Turns out that wrapper is already there, it's called subprocess.check_output() :). New patch is using ...
July 4, 2013, 7:31 a.m. (2013-07-04 07:31:50 UTC) #2
Wladimir Palant
Restored stderr redirection in autotest
July 4, 2013, 7:42 a.m. (2013-07-04 07:42:05 UTC) #3
Felix Dahlke
July 4, 2013, 7:45 a.m. (2013-07-04 07:45:27 UTC) #4
LGTM

Powered by Google App Engine
This is Rietveld