summaryrefslogtreecommitdiffstats
path: root/scripts/oe-build-perf-test
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2016-08-16 13:07:04 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-08-25 22:03:46 (GMT)
commit665800fdf645cfc4757be9137a7b6800bc8f4767 (patch)
treeadede388c8e98890921640a80ac10768e80f8db2 /scripts/oe-build-perf-test
parentc284616ffb994915bcb31b731c565c4426190faa (diff)
downloadpoky-665800fdf645cfc4757be9137a7b6800bc8f4767.tar.gz
oe-build-perf-test: use absolute paths in cmdline args
This is safer as the current working directory may change. (From OE-Core rev: 4b7bf7860713581ba351599fe32817ba24e8f8d0) 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/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 808531e..21759c6 100755
--- a/scripts/oe-build-perf-test
+++ b/scripts/oe-build-perf-test
@@ -99,11 +99,13 @@ def parse_args(argv):
99 parser.add_argument('-D', '--debug', action='store_true', 99 parser.add_argument('-D', '--debug', action='store_true',
100 help='Enable debug level logging') 100 help='Enable debug level logging')
101 parser.add_argument('--globalres-file', 101 parser.add_argument('--globalres-file',
102 type=os.path.abspath,
102 help="Append results to 'globalres' csv file") 103 help="Append results to 'globalres' csv file")
103 parser.add_argument('--lock-file', default='./oe-build-perf.lock', 104 parser.add_argument('--lock-file', default='./oe-build-perf.lock',
104 metavar='FILENAME', 105 metavar='FILENAME', type=os.path.abspath,
105 help="Lock file to use") 106 help="Lock file to use")
106 parser.add_argument('-o', '--out-dir', default='results-{date}', 107 parser.add_argument('-o', '--out-dir', default='results-{date}',
108 type=os.path.abspath,
107 help="Output directory for test results") 109 help="Output directory for test results")
108 parser.add_argument('--run-tests', nargs='+', metavar='TEST', 110 parser.add_argument('--run-tests', nargs='+', metavar='TEST',
109 help="List of tests to run") 111 help="List of tests to run")