Skip to content

Commit

Permalink
[infra] Fix environment during RBE shutdown.
Browse files Browse the repository at this point in the history
Bug: b/296994239
Change-Id: Id7545ef44a28ebb3c1439c1f980fa95978be1412
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/355780
Reviewed-by: William Hesse <whesse@google.com>
  • Loading branch information
sortie committed Mar 5, 2024
1 parent a27993d commit c0e089a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,12 +176,12 @@ def StartRBE(out_dir, use_goma, env):
return True


def StopRBE():
def StopRBE(env):
global rbe_started, bootstrap_path
if rbe_started != 'rbe':
return
bootstrap_command = [bootstrap_path, '--shutdown']
process = subprocess.Popen(bootstrap_command)
process = subprocess.Popen(bootstrap_command, env=env)
process.wait()


Expand Down Expand Up @@ -341,7 +341,7 @@ def Main():

exit_code = Build(configs, env, options)

StopRBE()
StopRBE(env)

if exit_code == 0:
endtime = time.time()
Expand Down

0 comments on commit c0e089a

Please sign in to comment.