"""
from ganeti import _autoconf
+from ganeti import constants
import qa_config
"""Test the Xen instance status collector.
"""
+ enabled_hypervisors = qa_config.GetEnabledHypervisors()
+
+ is_xen = (constants.HT_XEN_PVM in enabled_hypervisors or
+ constants.HT_XEN_HVM in enabled_hypervisors)
+ if not is_xen:
+ return
+
# Execute on master on an empty cluster
AssertCommand([MON_COLLECTOR, "inst-status-xen"])