Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t] scripts/test_list: Don't log missing testlist
@ 2024-09-19  8:16 Zbigniew Kempczyński
  2024-09-19 10:25 ` Manszewski, Christoph
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Zbigniew Kempczyński @ 2024-09-19  8:16 UTC (permalink / raw)
  To: igt-dev
  Cc: Zbigniew Kempczyński, Dominik Grzegorzek,
	Katarzyna Piecielska, Christoph Manszewski

When tests are compiled conditionally and compilation flag is set
to false they have no binaries in the build directory. As testlist
is built from .c source file list, unnecessary warnings about missing
.testlist files are produced.

Avoid this warnings by skipping processing testlists for which binaries
weren't produced.

Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
Cc: Dominik Grzegorzek <dominik.grzegorzek@intel.com>
Cc: Katarzyna Piecielska <katarzyna.piecielska@intel.com>
Cc: Christoph Manszewski <christoph.manszewski@intel.com>
---
 scripts/test_list.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/scripts/test_list.py b/scripts/test_list.py
index d050687fe1..40b6b7829b 100644
--- a/scripts/test_list.py
+++ b/scripts/test_list.py
@@ -1127,8 +1127,13 @@ class TestList:
 
         """ Return a list of tests as reported by --list-subtests """
         tests = []
+        no_binaries = self.get_not_compiled()
         for name in self.filenames:
-            testlist = re.sub(r"\.c$", ".testlist", name.split('/')[-1])
+            binary = re.sub(r"\.c$", "", name.split('/')[-1])
+            if binary in no_binaries:
+                continue
+
+            testlist = binary + ".testlist"
             fname = os.path.join(self.igt_build_path, "tests", testlist)
 
             if not os.path.isfile(fname):
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-09-20  8:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-19  8:16 [PATCH i-g-t] scripts/test_list: Don't log missing testlist Zbigniew Kempczyński
2024-09-19 10:25 ` Manszewski, Christoph
2024-09-19 23:36 ` ✓ Fi.CI.BAT: success for " Patchwork
2024-09-19 23:46 ` ✓ CI.xeBAT: " Patchwork
2024-09-20  1:56 ` ✓ CI.xeFULL: " Patchwork
2024-09-20  8:11 ` ✓ Fi.CI.IGT: " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox