From: Ed Bartosh <eduard.bart...@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.bart...@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

-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to