[oe-commits] [openembedded-core] 25/50: oe-build-perf-test: use absolute paths in cmdline args

git at git.openembedded.org git at git.openembedded.org
Thu Aug 25 22:04:41 UTC 2016


rpurdie pushed a commit to branch master
in repository openembedded-core.

commit 4b7bf7860713581ba351599fe32817ba24e8f8d0
Author: Markus Lehtonen <markus.lehtonen at linux.intel.com>
AuthorDate: Tue Aug 16 16:07:04 2016 +0300

    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 at linux.intel.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 scripts/oe-build-perf-test | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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):
     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")

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list