All of lore.kernel.org
 help / color / mirror / Atom feed
* [patchtest][PATCH] patchtestdata: convert paths to absolute paths
@ 2016-12-22 20:55 Ed Bartosh
  0 siblings, 0 replies; only message in thread
From: Ed Bartosh @ 2016-12-22 20:55 UTC (permalink / raw)
  To: yocto; +Cc: Ed Bartosh

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



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-12-22 20:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-22 20:55 [patchtest][PATCH] patchtestdata: convert paths to absolute paths Ed Bartosh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.