Add QA config flag for all performance tests
authorThomas Thrainer <thomasth@google.com>
Thu, 22 May 2014 08:25:50 +0000 (10:25 +0200)
committerThomas Thrainer <thomasth@google.com>
Thu, 22 May 2014 08:44:41 +0000 (10:44 +0200)
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>

qa/ganeti-qa.py
qa/qa-sample.json

index 111a337..867989b 100755 (executable)
@@ -786,6 +786,10 @@ def RunMonitoringTests():
 
 
 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)
index 365f876..99fd9a9 100644 (file)
     "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,