[update_test_checks] Allow opt to have .exe file extension

Reviewed By: rnk

Differential Revision: https://reviews.llvm.org/D91091
This commit is contained in:
Arthur Eubanks 2020-11-09 10:35:23 -08:00
parent b2fa3b922e
commit d1171bca96
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ def main():
script_name = os.path.basename(__file__)
opt_basename = os.path.basename(initial_args.opt_binary)
if not re.match(r'^opt(-\d+)?$', opt_basename):
if not re.match(r'^opt(-\d+)?(\.exe)?$', opt_basename):
common.error('Unexpected opt name: ' + opt_basename)
sys.exit(1)
opt_basename = 'opt'