igt-dev.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t 1/2] runner/resultgen: More checking if subtests should exist
@ 2018-09-11 11:38 Petri Latvala
  2018-09-11 11:38 ` [igt-dev] [PATCH i-g-t 2/2] runner: Seek to the end to get to the end of kmsg Petri Latvala
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Petri Latvala @ 2018-09-11 11:38 UTC (permalink / raw)
  To: igt-dev; +Cc: Martin Peres

If a test with subtests just exits immediately, or the test binary
doesn't exist at all (as is sometimes the case with kms_chamelium),
the existence of subtests doesn't end up in the execution journal. As
was done for timeouts in a797cbf6918a ("runner/resultgen: Be more
robust with incomplete tests"), check if we were attempting to run a
subtest before attributing a 'notrun' result to an incorrect field.

Signed-off-by: Petri Latvala <petri.latvala@intel.com>
Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Cc: Martin Peres <martin.peres@linux.intel.com>
---
 runner/resultgen.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/runner/resultgen.c b/runner/resultgen.c
index ea680914..d939583d 100644
--- a/runner/resultgen.c
+++ b/runner/resultgen.c
@@ -778,7 +778,7 @@ static void fill_from_journal(int fd,
 			add_runtime(obj, time);
 
 			/* If no subtests, the test result node also gets the runtime */
-			if (subtests->size == 0) {
+			if (subtests->size == 0 && entry->subtest_count == 0) {
 				obj = get_or_create_json_object(tests, piglit_name);
 				add_runtime(obj, time);
 			}
-- 
2.14.1

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

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

end of thread, other threads:[~2018-09-12  7:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-11 11:38 [igt-dev] [PATCH i-g-t 1/2] runner/resultgen: More checking if subtests should exist Petri Latvala
2018-09-11 11:38 ` [igt-dev] [PATCH i-g-t 2/2] runner: Seek to the end to get to the end of kmsg Petri Latvala
2018-09-12  7:04   ` Arkadiusz Hiler
2018-09-11 12:43 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/2] runner/resultgen: More checking if subtests should exist Patchwork
2018-09-11 13:41 ` [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;
as well as URLs for NNTP newsgroup(s).