[llvm] 8ee1ef2 - [Utils] Fix %S substitution
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 21 05:22:42 PDT 2022
Author: Nikita Popov
Date: 2022-03-21T13:22:34+01:00
New Revision: 8ee1ef2a087da1a101a6b2c0bea31788da289e0b
URL: https://github.com/llvm/llvm-project/commit/8ee1ef2a087da1a101a6b2c0bea31788da289e0b
DIFF: https://github.com/llvm/llvm-project/commit/8ee1ef2a087da1a101a6b2c0bea31788da289e0b.diff
LOG: [Utils] Fix %S substitution
%S refers to the directory of %s, not to the cwd. This is mostly
handled correctly, but update_cc_test_checks.py used for the wrong
path for non-FileCheck RUN lines.
Added:
Modified:
llvm/utils/update_cc_test_checks.py
Removed:
################################################################################
diff --git a/llvm/utils/update_cc_test_checks.py b/llvm/utils/update_cc_test_checks.py
index 1299efd46a772..d4fd0935bb779 100755
--- a/llvm/utils/update_cc_test_checks.py
+++ b/llvm/utils/update_cc_test_checks.py
@@ -241,7 +241,7 @@ def main():
subs = {
'%s' : ti.path,
'%t' : tempfile.NamedTemporaryFile().name,
- '%S' : os.getcwd(),
+ '%S' : os.path.dirname(ti.path),
}
for l in ti.run_lines:
More information about the llvm-commits
mailing list