From 9206762bbd4033e97d6d35ef1cce1b7940fbc935 Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Fri, 9 Mar 2018 15:43:03 +0330 Subject: [PATCH] Make subset test runner compatible with py3 Fixes #873 --- test/subset/run-tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/subset/run-tests.py b/test/subset/run-tests.py index 4c77de0..6d28b24 100755 --- a/test/subset/run-tests.py +++ b/test/subset/run-tests.py @@ -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.") -- 2.7.4