diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2023-03-02 17:18:45 +0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2023-04-20 11:17:34 +0200 |
commit | bc848265bca784b8807361e355eabc3d401d0561 (patch) | |
tree | b992b5ea107fb31d37b6292fac3642fc8b021009 | |
parent | 2d82c32b2ceaca3dc3da5e36e10976f34bfcb598 (diff) | |
download | qemu-bc848265bca784b8807361e355eabc3d401d0561.zip qemu-bc848265bca784b8807361e355eabc3d401d0561.tar.gz qemu-bc848265bca784b8807361e355eabc3d401d0561.tar.bz2 |
mtest2make.py: teach suite name that are just "PROJECT"
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>
Message-Id: <20230302131848.1527460-2-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r-- | scripts/mtest2make.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/scripts/mtest2make.py b/scripts/mtest2make.py index 0fe81ef..179dd54 100644 --- a/scripts/mtest2make.py +++ b/scripts/mtest2make.py @@ -51,10 +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] - if s == 'slow' or s == 'thorough': - continue + # The suite name in the introspection info is "PROJECT" or "PROJECT:SUITE" + if ':' in s: + s = s.split(':')[1] + if s == 'slow' or s == 'thorough': + continue if s.endswith('-slow'): s = s[:-5] suites[s].speeds.append('slow') |