]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
ptest: report tests that were killed on timeout
authorAlexander Kanavin <alex.kanavin@gmail.com>
Sun, 17 Sep 2023 09:38:37 +0000 (11:38 +0200)
committerSteve Sakoman <steve@sakoman.com>
Fri, 13 Oct 2023 02:23:08 +0000 (16:23 -1000)
I'm not sure if this was reported correctly before, but it
currently is not. Test that is stuck is an error in itself.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 002e27c9932a83e46be0b03a5232594cfba7212c)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/lib/oeqa/runtime/cases/ptest.py

index 3ef902218878d314dc0f8241ff233b1c31b1dc68..454a19430fa1100708de107ef7f2f20af21ef56b 100644 (file)
@@ -93,7 +93,7 @@ class PtestRunnerTest(OERuntimeTestCase):
         failed_tests = {}
 
         for section in sections:
-            if 'exitcode' in sections[section].keys():
+            if 'exitcode' in sections[section].keys() or 'timeout' in sections[section].keys():
                 failed_tests[section] = sections[section]["log"]
 
         for section in results: