[yocto] [patchtest][PATCH] patchtestdata: convert paths to absolute paths
Ed Bartosh
ed.bartosh at linux.intel.com
Thu Dec 22 12:55:54 PST 2016
From: Ed Bartosh <eduard.bartosh at intel.com>
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 at linux.intel.com>
---
patchtestdata.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/patchtestdata.py b/patchtestdata.py
index 2254ccb..ec7fa1f 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")
--
2.1.4
More information about the yocto
mailing list