aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xllvm/utils/update_any_test_checks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/update_any_test_checks.py b/llvm/utils/update_any_test_checks.py
index e1c7a8f..33b6689b 100755
--- a/llvm/utils/update_any_test_checks.py
+++ b/llvm/utils/update_any_test_checks.py
@@ -48,11 +48,11 @@ def main():
parser.add_argument('tests', nargs='+')
config = parser.parse_args()
- script_name = os.path.basename(__file__)
if config.utc_dir:
utc_search_path = config.utc_dir[:]
else:
utc_search_path = []
+ script_name = os.path.abspath(__file__)
utc_search_path.append(os.path.join(os.path.dirname(script_name),
os.path.pardir))