The ptest runner command has timeouts disabled which has the side effect of 
limiting
the command logging. This can lead to incomplete logs and makes issues harder 
to debug
since the log buffer is lost if things crash or are interrupted.

Pass in a timeout value of the ptest timeout + 30 so that debugging is improved.

Signed-off-by: Richard Purdie <[email protected]>
---
 meta/lib/oeqa/runtime/cases/ptest.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/lib/oeqa/runtime/cases/ptest.py 
b/meta/lib/oeqa/runtime/cases/ptest.py
index 2887e136719..57cb050a1d3 100644
--- a/meta/lib/oeqa/runtime/cases/ptest.py
+++ b/meta/lib/oeqa/runtime/cases/ptest.py
@@ -60,7 +60,7 @@ class PtestRunnerTest(OERuntimeTestCase):
         if not libdir in ptest_dirs:
             ptest_dirs.append(libdir)
         ptest_timeout = self.td.get('PTEST_RUNNER_TIMEOUT', '450')
-        status, output = self.target.run('ptest-runner -t {} -d 
\"{}\"'.format(ptest_timeout, ' '.join(ptest_dirs)), 0)
+        status, output = self.target.run('ptest-runner -t {} -d 
\"{}\"'.format(ptest_timeout, ' '.join(ptest_dirs)), 
timeout=int(ptest_timeout)+30)
         os.makedirs(ptest_log_dir)
         with open(ptest_runner_log, 'w') as f:
             f.write(output)
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#232435): 
https://lists.openembedded.org/g/openembedded-core/message/232435
Mute This Topic: https://lists.openembedded.org/mt/118138141/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to