Add a config flag similar to "os", "env" or "rapi" which disables all
performance related tests centrally. The individual config flags for
jobqueue and parallel processing focused tests are not touched.
Also, add the flags to qa-sample.json.
This fixes issue 826.
Signed-off-by: Thomas Thrainer <thomasth@google.com>
Reviewed-by: Helga Velroyen <helgav@google.com>
def RunPerformanceTests():
+ if not qa_config.TestEnabled("performance"):
+ ReportTestSkip("performance related tests", "performance")
+ return
+
if qa_config.TestEnabled("jobqueue-performance"):
RunTest(qa_performance.TestParallelMaxInstanceCreationPerformance)
RunTest(qa_performance.TestParallelNodeCountInstanceCreationPerformance)
"os": true,
"tags": true,
"rapi": true,
+ "performance": true,
"test-jobqueue": true,
"delay": true,
"job-list": true,
+ "jobqueue-performance": true,
+ "parallel-performance": true,
+
"# cron/ganeti-watcher should be disabled for these tests": null,
"instance-automatic-restart": false,
"instance-consecutive-failures": false,