Commit c9cf3f1a authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

qa_os: Disable checks for virtual clusters



The OS definitions are not virtualized. Tests configuring different OS
definitions on different nodes don't work properly.
Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarBernardo Dal Seno <bdalseno@google.com>
parent e35c341e
......@@ -205,6 +205,8 @@ def RunOsTests():
"""Runs all tests related to gnt-os.
"""
os_enabled = ["os", qa_config.NoVirtualCluster]
if qa_config.TestEnabled("rapi"):
rapi_getos = qa_rapi.GetOperatingSystems
else:
......@@ -214,21 +216,21 @@ def RunOsTests():
qa_os.TestOsList,
qa_os.TestOsDiagnose,
]:
RunTestIf("os", fn)
RunTestIf(os_enabled, fn)
for fn in [
qa_os.TestOsValid,
qa_os.TestOsInvalid,
qa_os.TestOsPartiallyValid,
]:
RunTestIf("os", fn, rapi_getos)
RunTestIf(os_enabled, fn, rapi_getos)
for fn in [
qa_os.TestOsModifyValid,
qa_os.TestOsModifyInvalid,
qa_os.TestOsStatesNonExisting,
]:
RunTestIf("os", fn)
RunTestIf(os_enabled, fn)
def RunCommonInstanceTests(instance):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment