This is an archive of the discontinued LLVM Phabricator instance.

[Utils] Use common substs in update_cc_test_checks
Needs ReviewPublic

Authored by sebastian-ne on Sep 28 2021, 1:14 AM.

Details

Summary

Use substitution methods from common.py in update_cc_test_checks.py.

Follow up to D110143.

Diff Detail

Event Timeline

sebastian-ne requested review of this revision.Sep 28 2021, 1:14 AM
sebastian-ne created this revision.
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptSep 28 2021, 1:14 AM
arichardson added inline comments.
llvm/utils/update_cc_test_checks.py
223

I think common.applySubstitutions should be called here and not below.

242

Shouldn't %t be supported in all tools? We could move this common.py. However, before doing that we should also fix temporary files to be cleaned up on exit. Looks like that bug was introduced in D98712.

I think the easiest solution would be to use a filename inside a TemporaryDirectory() that is cleaned up on exit.