Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [i-g-t] scripts/test_list: Allow unrecognized field:values in testplan
@ 2023-09-01  5:18 Bhanuprakash Modem
  2023-09-01  6:17 ` [igt-dev] ✗ GitLab.Pipeline: warning for " Patchwork
                   ` (7 more replies)
  0 siblings, 8 replies; 13+ messages in thread
From: Bhanuprakash Modem @ 2023-09-01  5:18 UTC (permalink / raw)
  To: igt-dev

As non-Intel vendors also contributing to KMS tests, allow
them to re-use the existing testplan documentation along with
their own definitions of field:values pair in test config json.

Instead of aborting, just throw a warning about this unrecognized
field:values.

Example:
tests/kms_color.c:994: Warning: unrecognized field in tests/kms_test_config.json  ==> Foo: bla

Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
---
 scripts/test_list.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/test_list.py b/scripts/test_list.py
index 0bcc96869..517c4d067 100755
--- a/scripts/test_list.py
+++ b/scripts/test_list.py
@@ -1219,8 +1219,8 @@ class TestList:
                     continue
 
                 file_line.rstrip(r"\n")
-                sys.exit(f"{fname}:{file_ln + 1}: Error: unrecognized line. Need to add field at %s?\n\t==> %s" %
-                         (self.config_fname, file_line))
+                print(f"{'/'.join(fname.split('/')[-2:])}:{file_ln + 1}: Warning: unrecognized field in %s ==> %s" %
+                        ('/'.join(self.config_fname.split('/')[-2:]), file_line))
 
     def show_subtests(self, sort_field):
 
-- 
2.40.0

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

end of thread, other threads:[~2023-09-04  8:13 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-01  5:18 [igt-dev] [i-g-t] scripts/test_list: Allow unrecognized field:values in testplan Bhanuprakash Modem
2023-09-01  6:17 ` [igt-dev] ✗ GitLab.Pipeline: warning for " Patchwork
2023-09-01  6:51 ` [igt-dev] ✓ CI.xeBAT: success " Patchwork
2023-09-01  6:51 ` [igt-dev] ✗ Fi.CI.BAT: failure " Patchwork
2023-09-01  7:20 ` [igt-dev] [i-g-t] " Mauro Carvalho Chehab
2023-09-01  9:02   ` Modem, Bhanuprakash
2023-09-01 10:08     ` Mauro Carvalho Chehab
2023-09-01 12:39       ` Modem, Bhanuprakash
2023-09-04  8:13         ` Mauro Carvalho Chehab
2023-09-01 10:22 ` [igt-dev] ✗ GitLab.Pipeline: warning for scripts/test_list: Allow unrecognized field:values in testplan (rev2) Patchwork
2023-09-01 10:49 ` [igt-dev] ✓ CI.xeBAT: success " Patchwork
2023-09-01 10:50 ` [igt-dev] ✓ Fi.CI.BAT: " Patchwork
2023-09-01 19:30 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork

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