From 1be35bef87093f0f9142b573d51fa116abe101ab Mon Sep 17 00:00:00 2001 From: Michael Hanselmann <hansmi@google.com> Date: Thu, 26 Apr 2012 19:57:29 +0200 Subject: [PATCH] QA: Fix shutdown for reinstall/rename tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The βRunTestIfβ uses an AND association between the passed test names, so the instance would be be shut down if both rename and reinstall were enabled. Since this is not necessarily the case, OR must be used. Signed-off-by: Michael Hanselmann <hansmi@google.com> Reviewed-by: Iustin Pop <iustin@google.com> --- qa/ganeti-qa.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/qa/ganeti-qa.py b/qa/ganeti-qa.py index 9f12d3751..ec964203e 100755 --- a/qa/ganeti-qa.py +++ b/qa/ganeti-qa.py @@ -252,7 +252,12 @@ def RunCommonInstanceTests(instance): RunTestIf(["instance-console", "rapi"], qa_rapi.TestRapiInstanceConsole, instance) - DOWN_TESTS = ["instance-reinstall", "instance-rename", "instance-grow-disk"] + DOWN_TESTS = qa_config.Either([ + "instance-reinstall", + "instance-rename", + "instance-grow-disk", + ]) + # shutdown instance for any 'down' tests RunTestIf(DOWN_TESTS, qa_instance.TestInstanceShutdown, instance) -- GitLab