File tree Expand file tree Collapse file tree 1 file changed +5
-12
lines changed
buildbot_effects/buildbot_effects Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -260,18 +260,11 @@ def run_effects(
260
260
with pipe () as (r_file , w_file ):
261
261
if debug :
262
262
print ("$" , shlex .join (bubblewrap_cmd ), file = sys .stderr )
263
- proc = subprocess .Popen (
263
+ proc = subprocess .run (
264
264
bubblewrap_cmd ,
265
- text = True ,
265
+ check = False ,
266
266
stdin = subprocess .DEVNULL ,
267
- stdout = w_file ,
268
- stderr = w_file ,
269
267
)
270
- w_file .close ()
271
- with proc :
272
- for line in r_file :
273
- print (line , end = "" )
274
- proc .wait ()
275
- if proc .returncode != 0 :
276
- msg = f"command failed with exit code { proc .returncode } "
277
- raise BuildbotEffectsError (msg )
268
+ if proc .returncode != 0 :
269
+ msg = f"command failed with exit code { proc .returncode } "
270
+ raise BuildbotEffectsError (msg )
You can’t perform that action at this time.
0 commit comments