]> code.ossystems Code Review - openembedded-core.git/commitdiff
oeqa: Change the order to logDetails and logSummary
authorAníbal Limón <anibal.limon@linux.intel.com>
Wed, 7 Jun 2017 16:39:38 +0000 (11:39 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 9 Jun 2017 16:12:06 +0000 (17:12 +0100)
Is better to log the summary at end to see in an easy way
the actual result of the test run.

[YOCTO #11622]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/testimage.bbclass
meta/classes/testsdk.bbclass
meta/lib/oeqa/core/context.py
meta/lib/oeqa/selftest/context.py

index 1185593a1bae4701bf062c57be54377abc4dc2f8..6c33e16e3d90e926cdd7d7c9a77cfe0d9d361e36 100644 (file)
@@ -292,8 +292,8 @@ def testimage_main(d):
     # Show results (if we have them)
     if not results:
         bb.fatal('%s - FAILED - tests were interrupted during execution' % pn)
-    results.logSummary(pn)
     results.logDetails()
+    results.logSummary(pn)
     if not results.wasSuccessful():
         bb.fatal('%s - FAILED - check the task log and the ssh log' % pn)
 
index 8a9e680328c63cbffe561957801bba30387c2696..6b51a33db2a2b4f05f63f2fc97a0faf0d2f2ba0a 100644 (file)
@@ -72,8 +72,8 @@ def testsdk_main(d):
         component = "%s %s" % (pn, OESDKTestContextExecutor.name)
         context_msg = "%s:%s" % (os.path.basename(tcname), os.path.basename(sdk_env))
 
-        result.logSummary(component, context_msg)
         result.logDetails()
+        result.logSummary(component, context_msg)
 
         if not result.wasSuccessful():
             fail = True
@@ -176,8 +176,8 @@ def testsdkext_main(d):
         component = "%s %s" % (pn, OESDKExtTestContextExecutor.name)
         context_msg = "%s:%s" % (os.path.basename(tcname), os.path.basename(sdk_env))
 
-        result.logSummary(component, context_msg)
         result.logDetails()
+        result.logSummary(component, context_msg)
 
         if not result.wasSuccessful():
             fail = True
index 0dbf5c353e510bed6740ea8b1fec6c36545bc9a4..2d543ffa31ad0663bec4ccd2060f54c8bfb7107b 100644 (file)
@@ -158,8 +158,8 @@ class OETestContextExecutor(object):
         else:
             self._pre_run()
             rc = self.tc.runTests(**self.tc_kwargs['run'])
-            rc.logSummary(self.name)
             rc.logDetails()
+            rc.logSummary(self.name)
 
         output_link = os.path.join(os.path.dirname(args.output_log),
                 "%s-results.log" % self.name)
index ca73070c0b79941f82fd69b126cb874fb429c136..8c8439bf283ce1d596e844b6b148a9c5231d58cd 100644 (file)
@@ -179,8 +179,8 @@ class OESelftestTestContextExecutor(OETestContextExecutor):
         else:
             self._pre_run()
             rc = self.tc.runTests(**self.tc_kwargs['run'])
-            rc.logSummary(self.name)
             rc.logDetails()
+            rc.logSummary(self.name)
 
         return rc