forked from OSchip/llvm-project
[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:
parent
b2fa3b922e
commit
d1171bca96
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue