Make subset test runner compatible with py3

Fixes #873
This commit is contained in:
Ebrahim Byagowi 2018-03-09 15:43:03 +03:30 committed by GitHub
parent dbadb871d1
commit 9206762bbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -87,9 +87,9 @@ def run_ttx(file):
def strip_check_sum (ttx_string):
return re.sub ('checkSumAdjustment value=["]0x([0-9a-fA-F])+["]',
'checkSumAdjustment value="0x00000000"',
ttx_string, count=1)
ttx_string.decode (), count=1)
def has_ots():
def has_ots ():
_, returncode = cmd(["which", "ots-sanitize"])
if returncode:
print("OTS is not present, skipping all ots checks.")