diff --git a/llvm/utils/update_cc_test_checks.py b/llvm/utils/update_cc_test_checks.py index d4fd0935bb7797..1299efd46a772c 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.path.dirname(ti.path), + '%S' : os.getcwd(), } for l in ti.run_lines: