-
Notifications
You must be signed in to change notification settings - Fork 14.4k
[Test] Account for spaces in paths in the new dtlto/files.test #146749
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Test] Account for spaces in paths in the new dtlto/files.test #146749
Conversation
This uses LIT substitutions in a response file that could contain spaces in paths. This caused a failure on a build bot where the path to the system Python executable was "C:\Program Files\Python310\python.exe", as reported in llvm#142757. Add appropriate quoting to fix the issue.
@llvm/pr-subscribers-lld-elf Author: bd1976bris (bd1976bris) ChangesThis uses LIT substitutions in a response file that could contain spaces in paths. This caused a failure on a build bot where the path to the system Python executable was "C:\Program Files\Python310\python.exe", as reported in #142757. Add appropriate quoting to fix the issue. Full diff: https://github.com/llvm/llvm-project/pull/146749.diff 1 Files Affected:
diff --git a/lld/test/ELF/dtlto/files.test b/lld/test/ELF/dtlto/files.test
index 727ef53c7f5b5..54bcf587f46b9 100644
--- a/lld/test/ELF/dtlto/files.test
+++ b/lld/test/ELF/dtlto/files.test
@@ -24,8 +24,8 @@ RUN: llc t2.ll --filetype=obj -o t2.o
## the contents of the object files supplied on the command line into the
## output object files in job order.
RUN: echo "t1.bc t2.bc --start-lib t3.bc --end-lib -o my.elf \
-RUN: --thinlto-distributor=%python \
-RUN: --thinlto-distributor-arg=%llvm_src_root/utils/dtlto/mock.py \
+RUN: --thinlto-distributor=\"%python\" \
+RUN: --thinlto-distributor-arg=\"%llvm_src_root/utils/dtlto/mock.py\" \
RUN: --thinlto-distributor-arg=t1.o \
RUN: --thinlto-distributor-arg=t2.o" > l.rsp
|
@llvm/pr-subscribers-lld Author: bd1976bris (bd1976bris) ChangesThis uses LIT substitutions in a response file that could contain spaces in paths. This caused a failure on a build bot where the path to the system Python executable was "C:\Program Files\Python310\python.exe", as reported in #142757. Add appropriate quoting to fix the issue. Full diff: https://github.com/llvm/llvm-project/pull/146749.diff 1 Files Affected:
diff --git a/lld/test/ELF/dtlto/files.test b/lld/test/ELF/dtlto/files.test
index 727ef53c7f5b5..54bcf587f46b9 100644
--- a/lld/test/ELF/dtlto/files.test
+++ b/lld/test/ELF/dtlto/files.test
@@ -24,8 +24,8 @@ RUN: llc t2.ll --filetype=obj -o t2.o
## the contents of the object files supplied on the command line into the
## output object files in job order.
RUN: echo "t1.bc t2.bc --start-lib t3.bc --end-lib -o my.elf \
-RUN: --thinlto-distributor=%python \
-RUN: --thinlto-distributor-arg=%llvm_src_root/utils/dtlto/mock.py \
+RUN: --thinlto-distributor=\"%python\" \
+RUN: --thinlto-distributor-arg=\"%llvm_src_root/utils/dtlto/mock.py\" \
RUN: --thinlto-distributor-arg=t1.o \
RUN: --thinlto-distributor-arg=t2.o" > l.rsp
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/162/builds/25874 Here is the relevant piece of the build log for the reference
|
This uses LIT substitutions in a response file that could contain spaces in paths. This caused a failure on a build bot where the path to the system Python executable was "C:\Program Files\Python310\python.exe", as reported in #142757.
Add appropriate quoting to fix the issue.