]> code.ossystems Code Review - openembedded-core.git/commitdiff
oeqa.buildperf: add 'product' to test result data
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Mon, 29 Aug 2016 19:48:20 +0000 (22:48 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 3 Sep 2016 08:58:29 +0000 (09:58 +0100)
This defaults to 'oe-core' but can be defined using the
OE_BUILDPERF_PRODUCT environment variable.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/buildperf/base.py

index dbc534efe3fc1c84f7418a331c918079befea1ad..ed8ff4ae292de71caf211478bcf6f4de86172cf9 100644 (file)
@@ -97,6 +97,7 @@ class BuildPerfTestResult(unittest.TextTestResult):
         self.git_commit, self.git_commit_count, self.git_branch = \
                 self.get_git_revision()
         self.hostname = socket.gethostname()
+        self.product = os.getenv('OE_BUILDPERFTEST_PRODUCT', 'oe-core')
         self.start_time = self.elapsed_time = None
         self.successes = []
         log.info("Using Git branch:commit %s:%s (%s)", self.git_branch,