Revision 1d103c02 qa/qa_instance.py

b/qa/qa_instance.py
111 111
  """gnt-instance reboot"""
112 112
  master = qa_config.GetMasterNode()
113 113

  
114
  for reboottype in ["soft", "hard", "full"]:
115
    cmd = ['gnt-instance', 'reboot', '--type=%s' % reboottype,
116
           instance['name']]
114
  options = qa_config.get('options', {})
115
  reboot_types = options.get("reboot-types", constants.REBOOT_TYPES)
116

  
117
  for rtype in reboot_types:
118
    cmd = ['gnt-instance', 'reboot', '--type=%s' % rtype, instance['name']]
117 119
    AssertEqual(StartSSH(master['primary'],
118 120
                         utils.ShellQuoteArgs(cmd)).wait(), 0)
119 121

  

Also available in: Unified diff