[PATCH] D115486: [lit] Support relative path arguments
Geoffrey Martin-Noble via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 20 11:50:03 PST 2021
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGe8b5b7218263: [lit] Support relative path arguments (authored by GMNGeoffrey).
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.395505.patch
Type: text/x-patch
Size: 1022 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211220/30627277/attachment.bin>
More information about the llvm-commits
mailing list