summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Bartosh <eduard.bartosh@intel.com>2016-12-22 22:32:18 +0200
committerEd Bartosh <ed.bartosh@linux.intel.com>2016-12-22 22:48:02 +0200
commit26b8c43c30ab7fd1fccbf962621604c2e31d5567 (patch)
tree682b7e429da77f3d498eb892554ae3397b5be4b9
parent50725b06d4ed15f3189120c9a728746f319ddb34 (diff)
downloadpoky-contrib-ed/patchtest/absolute-paths.tar.gz
poky-contrib-ed/patchtest/absolute-paths.tar.bz2
poky-contrib-ed/patchtest/absolute-paths.zip
patchtestdata: convert paths to absolute pathsed/patchtest/absolute-paths
Some tests fail if relative paths are provided to patchtest. Converting --repo-dir and --start-dir arguments to abosolute paths should make paths absolute, which is what patchset code currently assumes. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
-rw-r--r--patchtestdata.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/patchtestdata.py b/patchtestdata.py
index 2254ccb2b99..ec7fa1f956d 100644
--- a/patchtestdata.py
+++ b/patchtestdata.py
@@ -68,6 +68,7 @@ class PatchTestArgs(object):
parser.add_argument('--repo-dir', '-r',
dest='repodir',
+ type=os.path.abspath,
default=os.getcwd(),
help="Name of the repository where patch is merged")
@@ -79,6 +80,7 @@ class PatchTestArgs(object):
startdir = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'tests')
parser.add_argument('--start-dir', '-s',
dest='startdir',
+ type=os.path.abspath,
default=startdir,
help="Directory to start discover")