From: Ed Bartosh <ed.bartosh@linux.intel.com>
To: yocto@yoctoproject.org
Cc: Ed Bartosh <eduard.bartosh@intel.com>
Subject: [patchtest][PATCH] patchtestdata: convert paths to absolute paths
Date: Thu, 22 Dec 2016 22:55:54 +0200 [thread overview]
Message-ID: <1482440154-13598-1-git-send-email-ed.bartosh@linux.intel.com> (raw)
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
reply other threads:[~2016-12-22 20:56 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1482440154-13598-1-git-send-email-ed.bartosh@linux.intel.com \
--to=ed.bartosh@linux.intel.com \
--cc=eduard.bartosh@intel.com \
--cc=yocto@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.