summaryrefslogtreecommitdiffstats
path: root/scripts
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:44 +0100
commit5039a910b706a20ed664370f6c8ccaaec7ab9010 (patch)
treee423aadfbf4a1aba6315b35b1dcbd078e0fdfe84 /scripts
parent74820e99f744e022936a789b37042db63c302f10 (diff)
downloadpoky-5039a910b706a20ed664370f6c8ccaaec7ab9010.tar.gz
oe-build-perf-test: set-up file logging as early as possible
So that the log file would not miss any records. (From OE-Core rev: 9ce6e20ce239067896dc65f09e3fef1173293065) Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-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):
112 """Script entry point""" 112 """Script entry point"""
113 args = parse_args(argv) 113 args = parse_args(argv)
114 114
115 # Set-up log file
116 out_dir = args.out_dir.format(date=datetime.now().strftime('%Y%m%d%H%M%S'))
117 setup_file_logging(os.path.join(out_dir, 'output.log'))
118
115 if args.debug: 119 if args.debug:
116 log.setLevel(logging.DEBUG) 120 log.setLevel(logging.DEBUG)
117 121
@@ -129,9 +133,6 @@ def main(argv=None):
129 # Load build perf tests 133 # Load build perf tests
130 loader = BuildPerfTestLoader() 134 loader = BuildPerfTestLoader()
131 suite = loader.discover(start_dir=os.path.dirname(oeqa.buildperf.__file__)) 135 suite = loader.discover(start_dir=os.path.dirname(oeqa.buildperf.__file__))
132 # Set-up log file
133 out_dir = args.out_dir.format(date=datetime.now().strftime('%Y%m%d%H%M%S'))
134 setup_file_logging(os.path.join(out_dir, 'output.log'))
135 136
136 archive_build_conf(out_dir) 137 archive_build_conf(out_dir)
137 runner = BuildPerfTestRunner(out_dir, verbosity=2) 138 runner = BuildPerfTestRunner(out_dir, verbosity=2)