[PATCH] D115486: [lit] Support relative path arguments
Geoffrey Martin-Noble via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 15 14:34:00 PST 2021
GMNGeoffrey updated this revision to Diff 394661.
GMNGeoffrey added a comment.
Use type=os.path.abspath
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D115486/new/
https://reviews.llvm.org/D115486
Files:
llvm/utils/lit/lit/cl_arguments.py
llvm/utils/lit/lit/util.py
Index: llvm/utils/lit/lit/util.py
===================================================================
--- llvm/utils/lit/lit/util.py
+++ llvm/utils/lit/lit/util.py
@@ -232,7 +232,7 @@
for ext in pathext:
p = os.path.join(path, command + ext)
if os.path.exists(p) and not os.path.isdir(p):
- return os.path.normcase(os.path.normpath(p))
+ return os.path.normcase(os.path.abspath(p))
return None
Index: llvm/utils/lit/lit/cl_arguments.py
===================================================================
--- llvm/utils/lit/lit/cl_arguments.py
+++ llvm/utils/lit/lit/cl_arguments.py
@@ -92,7 +92,8 @@
execution_group.add_argument("--path",
help="Additional paths to add to testing environment",
action="append",
- default=[])
+ default=[],
+ type=os.path.abspath)
execution_group.add_argument("--vg",
dest="useValgrind",
help="Run tests under valgrind",
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115486.394661.patch
Type: text/x-patch
Size: 1022 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211215/3c1e57b2/attachment.bin>
More information about the llvm-commits
mailing list