未验证 提交 9206762b 编写于 作者: E Ebrahim Byagowi 提交者: GitHub

Make subset test runner compatible with py3

Fixes #873
上级 dbadb871
......@@ -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.")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册