diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2016-05-09 17:27:35 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-07-01 16:22:48 +0100 |
commit | 0c92770ed25196f40ba243f0a286c6fef1350d82 (patch) | |
tree | 9558a45a25f0c75b803ea8d6ae8f546574a9fb25 /scripts | |
parent | c3ee14ef38f73c3a782b0fc8333ce437d165e4ff (diff) | |
download | poky-0c92770ed25196f40ba243f0a286c6fef1350d82.tar.gz |
oe-build-perf-test: add --out-dir command line argument
The new option defines the output directory for the test result data.
(From OE-Core rev: bc865b5cb5a9a76048ee9c55a29f5e1a926bb543)
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-x | scripts/oe-build-perf-test | 4 |
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): | |||
90 | parser.add_argument('--lock-file', default='./oe-build-perf.lock', | 90 | parser.add_argument('--lock-file', default='./oe-build-perf.lock', |
91 | metavar='FILENAME', | 91 | metavar='FILENAME', |
92 | help="Lock file to use") | 92 | help="Lock file to use") |
93 | parser.add_argument('-o', '--out-dir', default='results-{date}', | ||
94 | help="Output directory for test results") | ||
93 | 95 | ||
94 | return parser.parse_args(argv) | 96 | return parser.parse_args(argv) |
95 | 97 | ||
@@ -113,7 +115,7 @@ def main(argv=None): | |||
113 | KernelDropCaches.check() | 115 | KernelDropCaches.check() |
114 | 116 | ||
115 | # Set-up log file | 117 | # Set-up log file |
116 | out_dir = 'results-{}'.format(datetime.now().strftime('%Y%m%d%H%M%S')) | 118 | 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')) | 119 | setup_file_logging(os.path.join(out_dir, 'output.log')) |
118 | 120 | ||
119 | # Run actual tests | 121 | # Run actual tests |