[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 14/15] mtest2make.py: teach suite name that are just "PROJECT"
From: |
marcandre . lureau |
Subject: |
[PATCH v2 14/15] mtest2make.py: teach suite name that are just "PROJECT" |
Date: |
Tue, 12 Jul 2022 13:35:27 +0400 |
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
if s == 'slow' or s == 'thorough':
continue
if s.endswith('-slow'):
--
2.37.0.rc0
- Re: [PATCH v2 08/15] scripts/qapi: add required system includes to visitor, (continued)
- [PATCH v2 07/15] scripts/qapi-gen: add -i option, marcandre . lureau, 2022/07/12
- [PATCH v2 09/15] util: move 256-by-128 division helpers to int128, marcandre . lureau, 2022/07/12
- [PATCH v2 10/15] qemu-common: introduce a common subproject, marcandre . lureau, 2022/07/12
- [PATCH v2 11/15] qemu-common: move scripts/qapi, marcandre . lureau, 2022/07/12
- [PATCH v2 12/15] qemu-common: move glib-compat.h, marcandre . lureau, 2022/07/12
- [PATCH v2 13/15] qemu-common: move error-report, marcandre . lureau, 2022/07/12
- [PATCH v2 14/15] mtest2make.py: teach suite name that are just "PROJECT",
marcandre . lureau <=
- [PATCH v2 15/15] qemu-common: add error-report test, marcandre . lureau, 2022/07/12