qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 14/15] mtest2make.py: teach suite name that are just "PROJ


From: Paolo Bonzini
Subject: Re: [PATCH v2 14/15] mtest2make.py: teach suite name that are just "PROJECT"
Date: Fri, 5 Aug 2022 12:35:48 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0

On 7/12/22 11:35, marcandre.lureau@redhat.com wrote:
From: Marc-André Lureau <marcandre.lureau@redhat.com>

A subproject test may be simply in the "PROJECT" suite (such as
"qemu-common" with the following patches)

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
  scripts/mtest2make.py | 7 +++++--
  1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/scripts/mtest2make.py b/scripts/mtest2make.py
index 0fe81efbbcec..606821ee2732 100644
--- a/scripts/mtest2make.py
+++ b/scripts/mtest2make.py
@@ -51,8 +51,11 @@ def process_tests(test, targets, suites):
test_suites = test['suite'] or ['default']
      for s in test_suites:
-        # The suite name in the introspection info is "PROJECT:SUITE"
-        s = s.split(':')[1]
+        # The suite name in the introspection info is "PROJECT" or 
"PROJECT:SUITE"
+        try:
+            s = s.split(':')[1]
+        except IndexError:
+            continue

Shouldn't you continue with s begin simply "PROJECT"?  That is, just

    if ':' in s:
        s = s.split(':')[1]

This way you can do "make check-qemu-common".

          if s == 'slow' or s == 'thorough':
              continue
          if s.endswith('-slow'):

and then however these two "ifs" need to be under the case where the suite name is "PROJECT:SUITE".

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]