Revision e1876432 qa/qa_rapi.py
b/qa/qa_rapi.py | ||
---|---|---|
58 | 58 |
"""Return whether remote API tests should be run. |
59 | 59 |
|
60 | 60 |
""" |
61 |
return constants.RAPI_ENABLE and qa_config.TestEnabled('rapi') |
|
62 |
|
|
63 |
|
|
64 |
def PrintRemoteAPIWarning(): |
|
65 |
"""Print warning if remote API is not enabled. |
|
66 |
|
|
67 |
""" |
|
68 |
if constants.RAPI_ENABLE or not qa_config.TestEnabled('rapi'): |
|
69 |
return |
|
70 |
msg = ("Remote API is not enabled in this Ganeti build. Please run" |
|
71 |
" `configure [...] --enable-rapi'.") |
|
72 |
|
|
73 |
print qa_utils.FormatWarning(msg) |
|
61 |
return qa_config.TestEnabled('rapi') |
|
74 | 62 |
|
75 | 63 |
|
76 | 64 |
def _DoTests(uris): |
Also available in: Unified diff