[oe-commits] [openembedded-core] 14/14: fixup

git at git.openembedded.org git at git.openembedded.org
Thu Mar 12 12:46:50 UTC 2020


This is an automated email from the git hooks/post-receive script.

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

commit d485e77620c112c60efa586ffd582d08a9302b6a
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Thu Mar 12 07:56:48 2020 +0000

    fixup
    
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/lib/oeqa/core/runner.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/lib/oeqa/core/runner.py b/meta/lib/oeqa/core/runner.py
index fc3872a..1284295 100644
--- a/meta/lib/oeqa/core/runner.py
+++ b/meta/lib/oeqa/core/runner.py
@@ -322,11 +322,11 @@ class OETestResultJSONHelper(object):
         try:
             import bb
             has_bb = True
+            bb.utils.mkdirhier(write_dir)
             lf = bb.utils.lockfile(os.path.join(write_dir, 'jsontestresult.lock'))
-            bb.utils.mkdirhier(write_dir, exist_ok=True)
         except ImportError:
             has_bb = False
-            os.makedirs(write_dir)
+            os.makedirs(write_dir, exist_ok=True)
         test_results = self._get_existing_testresults_if_available(write_dir)
         test_results[result_id] = {'configuration': configuration, 'result': test_result}
         json_testresults = json.dumps(test_results, sort_keys=True, indent=4)

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


More information about the Openembedded-commits mailing list