Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t 0/1] Fix IGT runner error logic when listing subtests
@ 2023-02-20  9:20 Mauro Carvalho Chehab
  2023-02-20  9:20 ` [igt-dev] [PATCH i-g-t 1/1] runner/job_list: return error on crashes while running --list-subtests Mauro Carvalho Chehab
  0 siblings, 1 reply; 2+ messages in thread
From: Mauro Carvalho Chehab @ 2023-02-20  9:20 UTC (permalink / raw)
  To: igt-dev

From: Mauro Carvalho Chehab <mchehab@kernel.org>

Patches may end breaking --list-subtests if they, for instance, have a
pattern like:

	igt_fixture
		fd = drm_open_driver(DRIVER);
	...
	do_something(fd);

	igt_subtest("foo")
		...
	igt_subtest("bar")
		...

As any usage of (fd) will cause a crash. As result, currently IGT
will produce stderror outbut, but will keep executing, producing
a wrong testlist, as "foo" and "bar" won't be listed.

That will also break scripts that would depend on a reliable testlist.

So, return an error on such cases.

Mauro Carvalho Chehab (1):
  runner/job_list: return error on crashes while running --list-subtests

 runner/job_list.c | 1 +
 1 file changed, 1 insertion(+)

-- 
2.39.0

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

end of thread, other threads:[~2023-02-20  9:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-20  9:20 [igt-dev] [PATCH i-g-t 0/1] Fix IGT runner error logic when listing subtests Mauro Carvalho Chehab
2023-02-20  9:20 ` [igt-dev] [PATCH i-g-t 1/1] runner/job_list: return error on crashes while running --list-subtests Mauro Carvalho Chehab

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