If there are no tests which are not assigned to a test suite, omit the
line printing the non_suite_tests. This avoid having error messages from
meson about test "" not being in any test suite.
Fixes: 25065ef1f6c0 ("test: emit warning for orphaned tests")
Cc: [email protected]
Signed-off-by: Bruce Richardson <[email protected]>
Acked-by: Marat Khalili <[email protected]>
---
buildtools/get-test-suites.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/buildtools/get-test-suites.py b/buildtools/get-test-suites.py
index 73f1d9c9e1..36ed4bedc2 100644
--- a/buildtools/get-test-suites.py
+++ b/buildtools/get-test-suites.py
@@ -38,4 +38,5 @@ def get_fast_test_params(test_name, ln):
for suite in test_suites.keys():
print(f"{suite}={','.join(test_suites[suite])}")
-print(f"non_suite_tests={','.join(non_suite_tests)}")
+if non_suite_tests:
+ print(f"non_suite_tests={','.join(non_suite_tests)}")
--
2.51.0