Skip to content

Commit

Permalink
Merge pull request andreasgal#306 from khuey/nuwa
Browse files Browse the repository at this point in the history
Bug 948774: Default to not waiting for files from the Nuwa process since...
  • Loading branch information
fabricedesre committed Jan 14, 2014
2 parents 0458ee4 + 22787a5 commit 77f60f2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tools/include/device_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ def notify_and_pull_files(outfiles_prefixes,
out_dir,
optional_outfiles_prefixes=[],
fifo_msg=None,
signal=None):
signal=None,
ignore_nuwa=os.getenv("MOZ_IGNORE_NUWA_PROCESS")):
'''Send a message to the main B2G process (either by sending it a signal or
by writing to a fifo that it monitors) and pull files created as a result.
Expand Down Expand Up @@ -214,7 +215,10 @@ def notify_and_pull_files(outfiles_prefixes,

all_outfiles_prefixes = outfiles_prefixes + optional_outfiles_prefixes

num_expected_files = len(outfiles_prefixes) * (1 + len(child_pids))
num_expected_responses = 1 + len(child_pids)
if ignore_nuwa:
num_expected_responses -= 1
num_expected_files = len(outfiles_prefixes) * num_expected_responses
_wait_for_remote_files(outfiles_prefixes, num_expected_files, old_files)
new_files = _pull_remote_files(all_outfiles_prefixes, old_files, out_dir)
if remove_outfiles_from_device:
Expand Down

0 comments on commit 77f60f2

Please sign in to comment.