Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,9 @@ def self.run(params)

# Launching AVDs
UI.message("Launching all AVDs at the same time.".yellow)
pids = []
for i in 0...avd_controllers.length
Process.fork do
pids << Process.fork do
Action.sh(avd_controllers[i].command_start_avd)
end
end
Expand Down Expand Up @@ -219,6 +220,11 @@ def self.run(params)

# Delete AVDs
if params[:AVD_clean_after]
UI.message(["Waiting for ", avd_schemes[i].avd_name, " to finish..."].join("").yellow)
begin_waiting = Time.now
Process.wait(pids[i])
waited = (Time.now - begin_waiting).to_i
UI.message(["Finished in ", waited, " seconds"].join("").yellow)
UI.message("AVD_clean_after param set to true. Deleting AVDs.".green)
Action.sh(avd_controllers[i].command_delete_avd)
else
Expand Down