Revision cc27265e qa/qa_instance.py

b/qa/qa_instance.py
34 34
import qa_utils
35 35
import qa_error
36 36

  
37
from qa_utils import AssertIn, AssertCommand
37
from qa_utils import AssertIn, AssertCommand, AssertEqual
38 38

  
39 39

  
40 40
def _GetDiskStatePath(disk):
......
104 104
  for rtype in reboot_types:
105 105
    AssertCommand(["gnt-instance", "reboot", "--type=%s" % rtype, name])
106 106

  
107
  AssertCommand(["gnt-instance", "shutdown", name])
108
  AssertCommand(["gnt-instance", "reboot", name])
109

  
110
  master = qa_config.GetMasterNode()
111
  cmd = ["gnt-instance", "list", "--no-header", "-o", "status", name]
112
  result_output = qa_utils.GetCommandOutput(master["primary"],
113
                                            utils.ShellQuoteArgs(cmd))
114
  AssertEqual(result_output.strip(), constants.INSTST_RUNNING)
115

  
107 116

  
108 117
def TestInstanceReinstall(instance):
109 118
  """gnt-instance reinstall"""

Also available in: Unified diff