ソースを参照

oe-build-perf-test: use absolute paths in cmdline args

This is safer as the current working directory may change.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Markus Lehtonen 7 年 前
コミット
4b7bf78607
1 ファイル変更3 行追加1 行削除
  1. 3 1
      scripts/oe-build-perf-test

+ 3 - 1
scripts/oe-build-perf-test

@@ -99,11 +99,13 @@ def parse_args(argv):
     parser.add_argument('-D', '--debug', action='store_true',
                         help='Enable debug level logging')
     parser.add_argument('--globalres-file',
+                        type=os.path.abspath,
                         help="Append results to 'globalres' csv file")
     parser.add_argument('--lock-file', default='./oe-build-perf.lock',
-                        metavar='FILENAME',
+                        metavar='FILENAME', type=os.path.abspath,
                         help="Lock file to use")
     parser.add_argument('-o', '--out-dir', default='results-{date}',
+                        type=os.path.abspath,
                         help="Output directory for test results")
     parser.add_argument('--run-tests', nargs='+', metavar='TEST',
                         help="List of tests to run")