[gatesgarth,10/19] oeqa/core/context: initialize _run_end_time

Submitted by Anuj Mittal on Nov. 17, 2020, 3:35 p.m. | Patch ID: 178037

Details

Message ID a91308482e1bb524df413d4342a9ebb472314663.1605626675.git.anuj.mittal@intel.com
State New
Headers show

Commit Message

Anuj Mittal Nov. 17, 2020, 3:35 p.m.
From: Konrad Weihmann <kweihmann@outlook.com>


with _run_start_time as value. For partial results of interrupted runs,
this info might be otherwise missing for at least one testcase

Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

(cherry picked from commit 1c5e8baf57fa2a33b9ef507b11d9ea9acaa77238)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>

---
 meta/lib/oeqa/core/context.py | 1 +
 1 file changed, 1 insertion(+)

-- 
2.28.0
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144719): https://lists.openembedded.org/g/openembedded-core/message/144719
Mute This Topic: https://lists.openembedded.org/mt/78318290/1003190
Group Owner: openembedded-core+owner@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [mhalstead@linuxfoundation.org]
-=-=-=-=-=-=-=-=-=-=-=-

Patch hide | download patch | download mbox

diff --git a/meta/lib/oeqa/core/context.py b/meta/lib/oeqa/core/context.py
index 84b43a93e1..2abe353d27 100644
--- a/meta/lib/oeqa/core/context.py
+++ b/meta/lib/oeqa/core/context.py
@@ -85,6 +85,7 @@  class OETestContext(object):
         self.skipTests(skips)
 
         self._run_start_time = time.time()
+        self._run_end_time = self._run_start_time
         if not processes:
             self.runner.buffer = True
         result = self.runner.run(self.prepareSuite(self.suites, processes))