summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/buildperf
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2016-08-29 22:48:24 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-09-03 09:58:41 +0100
commit6d75f39f0997734b5c0222ae7b330168d6e23c91 (patch)
tree148c5b78bfdc31c251b6a18a4b760add03b89afe /meta/lib/oeqa/buildperf
parent700ebe996a1ad5c82e55228d04a7b5a0f2d1f0c7 (diff)
downloadpoky-6d75f39f0997734b5c0222ae7b330168d6e23c91.tar.gz
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. (From OE-Core rev: 64ff34df96aa9a74dd4303f76ec711aa5e9d5030) Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/buildperf')
-rw-r--r--meta/lib/oeqa/buildperf/base.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/lib/oeqa/buildperf/base.py b/meta/lib/oeqa/buildperf/base.py
index 4918e793a1..64c1a44733 100644
--- a/meta/lib/oeqa/buildperf/base.py
+++ b/meta/lib/oeqa/buildperf/base.py
@@ -146,7 +146,8 @@ class BuildPerfTestResult(unittest.TextTestResult):
146 146
147 def startTest(self, test): 147 def startTest(self, test):
148 """Pre-test hook""" 148 """Pre-test hook"""
149 test.out_dir = self.out_dir 149 test.out_dir = os.path.join(self.out_dir, test.name)
150 os.mkdir(test.out_dir)
150 log.info("Executing test %s: %s", test.name, test.shortDescription()) 151 log.info("Executing test %s: %s", test.name, test.shortDescription())
151 self.stream.write(datetime.now().strftime("[%Y-%m-%d %H:%M:%S] ")) 152 self.stream.write(datetime.now().strftime("[%Y-%m-%d %H:%M:%S] "))
152 super(BuildPerfTestResult, self).startTest(test) 153 super(BuildPerfTestResult, self).startTest(test)