[oe-commits] [openembedded-core] 51/86: oe-build-perf-test: update globalres and git even if tests failed

git at git.openembedded.org git at git.openembedded.org
Tue Aug 30 16:18:58 UTC 2016


rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 656be8c0206dbacff5a9876d5a82e47596620fb6
Author: Markus Lehtonen <markus.lehtonen at linux.intel.com>
AuthorDate: Fri Aug 26 10:33:11 2016 +0300

    oe-build-perf-test: update globalres and git even if tests failed
    
    Write globalres log file and commit results to Git even if some tests
    failed. Now that tests do not depend on each other there should be no
    risk of bogus results caused by test failures.
    
    Signed-off-by: Markus Lehtonen <markus.lehtonen at linux.intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 scripts/oe-build-perf-test | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/scripts/oe-build-perf-test b/scripts/oe-build-perf-test
index 35a4839..3dab070 100755
--- a/scripts/oe-build-perf-test
+++ b/scripts/oe-build-perf-test
@@ -191,13 +191,13 @@ def main(argv=None):
     # Restore logger output to stderr
     log.handlers[0].setLevel(log.level)
 
+    if args.globalres_file:
+        result.update_globalres_file(args.globalres_file)
+    if args.commit_results:
+        result.git_commit_results(args.commit_results,
+                                  args.commit_results_branch,
+                                  args.commit_results_tag)
     if result.wasSuccessful():
-        if args.globalres_file:
-            result.update_globalres_file(args.globalres_file)
-        if args.commit_results:
-            result.git_commit_results(args.commit_results,
-                                      args.commit_results_branch,
-                                      args.commit_results_tag)
         return 0
 
     return 1

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list