[oe-commits] [openembedded-core] 63/102: oeqa.buildperf: separate output dir for each test

git at git.openembedded.org git at git.openembedded.org
Tue Aug 30 22:58:33 UTC 2016


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

commit 42e5e4497c7ee7f8d70519ad43b9ba8b6f46e5ab
Author: Markus Lehtonen <markus.lehtonen at linux.intel.com>
AuthorDate: Mon Aug 29 22:48:24 2016 +0300

    oeqa.buildperf: separate output dir for each test
    
    Store the output data of each test in an individual subdirectory instead
    of storing everything in the root output directory.
    
    Signed-off-by: Markus Lehtonen <markus.lehtonen at linux.intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/lib/oeqa/buildperf/base.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta/lib/oeqa/buildperf/base.py b/meta/lib/oeqa/buildperf/base.py
index 4918e79..64c1a44 100644
--- a/meta/lib/oeqa/buildperf/base.py
+++ b/meta/lib/oeqa/buildperf/base.py
@@ -146,7 +146,8 @@ class BuildPerfTestResult(unittest.TextTestResult):
 
     def startTest(self, test):
         """Pre-test hook"""
-        test.out_dir = self.out_dir
+        test.out_dir = os.path.join(self.out_dir, test.name)
+        os.mkdir(test.out_dir)
         log.info("Executing test %s: %s", test.name, test.shortDescription())
         self.stream.write(datetime.now().strftime("[%Y-%m-%d %H:%M:%S] "))
         super(BuildPerfTestResult, self).startTest(test)

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


More information about the Openembedded-commits mailing list