[subset] Fix checksum clearning in subset test diff. Add an updated expected file (has cmap4 restored).

This commit is contained in:
Garret Rieger 2018-02-22 14:28:18 -08:00 committed by Behdad Esfahbod
parent 537698b601
commit a88504c601
2 changed files with 5 additions and 2 deletions

View File

@ -77,8 +77,11 @@ def run_ttx(file):
return cmd(cli_args)
def strip_check_sum (ttx_string):
return re.sub ('checksumAdjustment value=["]0x(\d+)["]',
'checksumAdjustment value="0x00000000"',
# return re.sub ('checkSumAdjustment value=["]0x(\d+)["]',
# 'checkSumAdjustment value="0x00000000"',
# ttx_string, count=1)
return re.sub ('checkSumAdjustment value=["]0x([0-9a-fA-F])+["]',
'checkSumAdjustment value="0x00000000"',
ttx_string, count=1)
args = sys.argv[1:]