[PATCH] D149064: [lit] Set __COMPAT_LAYER=RunAsInvoker when running tests on Windows
Alvin Wong via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 27 01:28:52 PDT 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rGf1431bbfb17c: [lit] Set __COMPAT_LAYER=RunAsInvoker when running tests on Windows (authored by alvinhochun).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D149064/new/
https://reviews.llvm.org/D149064
Files:
llvm/utils/lit/lit/TestingConfig.py
Index: llvm/utils/lit/lit/TestingConfig.py
===================================================================
--- llvm/utils/lit/lit/TestingConfig.py
+++ llvm/utils/lit/lit/TestingConfig.py
@@ -75,6 +75,14 @@
'USERPROFILE',
]
environment['PYTHONBUFFERED'] = '1'
+ # Avoid Windows heuristics which try to detect potential installer
+ # programs (which may need to run with elevated privileges) and ask
+ # if the user wants to run them in that way. This heuristic may
+ # match for executables containing the substrings "patch" (which is
+ # a substring of "dispatch"), "update", "setup", etc. Set this
+ # environment variable indicating that we want to execute them with
+ # the current user.
+ environment['__COMPAT_LAYER'] = 'RunAsInvoker'
for var in pass_vars:
val = os.environ.get(var, '')
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149064.517480.patch
Type: text/x-patch
Size: 951 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230427/04e4be37/attachment-0001.bin>
More information about the llvm-commits
mailing list