summaryrefslogtreecommitdiff
path: root/scripts/oe-build-perf-test
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2016-08-16 12:15:59 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-08-17 10:35:25 +0100
commit9ce6e20ce239067896dc65f09e3fef1173293065 (patch)
treea9641a5cc661d0e2bd631fe11c386f9e2c56e659 /scripts/oe-build-perf-test
parent36f58b5172d4e2e182aa447fb3ec4d1ac9f6820d (diff)
downloadopenembedded-core-9ce6e20ce239067896dc65f09e3fef1173293065.tar.gz
openembedded-core-9ce6e20ce239067896dc65f09e3fef1173293065.tar.bz2
openembedded-core-9ce6e20ce239067896dc65f09e3fef1173293065.zip
oe-build-perf-test: set-up file logging as early as possible
So that the log file would not miss any records. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts/oe-build-perf-test')
-rwxr-xr-xscripts/oe-build-perf-test7
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/oe-build-perf-test b/scripts/oe-build-perf-test
index 4e6d738374..07f2a1fde5 100755
--- a/scripts/oe-build-perf-test
+++ b/scripts/oe-build-perf-test
@@ -112,6 +112,10 @@ def main(argv=None):
"""Script entry point"""
args = parse_args(argv)
+ # Set-up log file
+ out_dir = args.out_dir.format(date=datetime.now().strftime('%Y%m%d%H%M%S'))
+ setup_file_logging(os.path.join(out_dir, 'output.log'))
+
if args.debug:
log.setLevel(logging.DEBUG)
@@ -129,9 +133,6 @@ def main(argv=None):
# Load build perf tests
loader = BuildPerfTestLoader()
suite = loader.discover(start_dir=os.path.dirname(oeqa.buildperf.__file__))
- # Set-up log file
- out_dir = args.out_dir.format(date=datetime.now().strftime('%Y%m%d%H%M%S'))
- setup_file_logging(os.path.join(out_dir, 'output.log'))
archive_build_conf(out_dir)
runner = BuildPerfTestRunner(out_dir, verbosity=2)