summaryrefslogtreecommitdiff
path: root/scripts/oe-build-perf-test
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2016-05-09 17:27:35 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-07-01 16:08:52 +0100
commitbc865b5cb5a9a76048ee9c55a29f5e1a926bb543 (patch)
tree7d5457625fe4176debfc93d18a7be720bdf2876a /scripts/oe-build-perf-test
parent181e92e7a1bccf678b3eb1bf547608a142784f97 (diff)
downloadopenembedded-core-bc865b5cb5a9a76048ee9c55a29f5e1a926bb543.tar.gz
openembedded-core-bc865b5cb5a9a76048ee9c55a29f5e1a926bb543.tar.bz2
openembedded-core-bc865b5cb5a9a76048ee9c55a29f5e1a926bb543.zip
oe-build-perf-test: add --out-dir command line argument
The new option defines the output directory for the test result data. 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-test4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/oe-build-perf-test b/scripts/oe-build-perf-test
index 64873c90aa..996996bc62 100755
--- a/scripts/oe-build-perf-test
+++ b/scripts/oe-build-perf-test
@@ -90,6 +90,8 @@ def parse_args(argv):
parser.add_argument('--lock-file', default='./oe-build-perf.lock',
metavar='FILENAME',
help="Lock file to use")
+ parser.add_argument('-o', '--out-dir', default='results-{date}',
+ help="Output directory for test results")
return parser.parse_args(argv)
@@ -113,7 +115,7 @@ def main(argv=None):
KernelDropCaches.check()
# Set-up log file
- out_dir = 'results-{}'.format(datetime.now().strftime('%Y%m%d%H%M%S'))
+ 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'))
# Run actual tests