LGTM, thanks

On Thu, May 22, 2014 at 10:35 AM, 'Thomas Thrainer' via ganeti-devel <
[email protected]> wrote:

> 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 <[email protected]>
> ---
>  qa/ganeti-qa.py   | 4 ++++
>  qa/qa-sample.json | 4 ++++
>  2 files changed, 8 insertions(+)
>
> diff --git a/qa/ganeti-qa.py b/qa/ganeti-qa.py
> index 111a337..867989b 100755
> --- a/qa/ganeti-qa.py
> +++ b/qa/ganeti-qa.py
> @@ -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)
> diff --git a/qa/qa-sample.json b/qa/qa-sample.json
> index 365f876..99fd9a9 100644
> --- a/qa/qa-sample.json
> +++ b/qa/qa-sample.json
> @@ -149,6 +149,7 @@
>      "os": true,
>      "tags": true,
>      "rapi": true,
> +    "performance": true,
>      "test-jobqueue": true,
>      "delay": true,
>
> @@ -223,6 +224,9 @@
>
>      "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,
> --
> 1.9.1.423.g4596e3a
>
>


-- 
-- 
Helga Velroyen | Software Engineer | [email protected] |

Google Germany GmbH
Dienerstr. 12
80331 München

Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Geschäftsführer: Graham Law, Christine Elizabeth Flores

Reply via email to