lib/sailfish_tools/vm_manager.rb
# Check that VM is running, if not, start it in
# mode depending on headless argument value
Check that VM is running, if not, start it in
mode depending on headless argument value
Check that VM is running if not start it in mode depending on headless argument value
def check_or_start_vm(config, headless)
    vms = `VBoxManage list runningvms`
    return if vms.include?(config[:id])
    options = headless ? '--type headless' : ''
    `VBoxManage startvm "#{config[:id]}" #{options}`
    unless $CHILD_STATUS.success?
      raise TestRunner::VMDidNotStart.new, "Machine '#{config[:name]}' did not start"
    end
  end
def check_or_start_vm ( config , headless ) vms = ` VBoxManage list runningvms ` return if vms . include? ( config [ :id ] ) options = headless ? '--type headless' : '' ` VBoxManage startvm " #{ config [ :id ] } "  #{ options } ` unless $CHILD_STATUS . success? raise TestRunner :: VMDidNotStart . new , "Machine '#{config[:name]}' did not start" end end
Check that VM is running, if not, start it in
mode depending on headless argument value
Check that VM is running if not start it in mode depending on headless argument value
config
<not_specific>
headless
<not_specific>