diff --git a/tests/hwsim/run-tests.py b/tests/hwsim/run-tests.py index be0edcb7a..49e42cd78 100755 --- a/tests/hwsim/run-tests.py +++ b/tests/hwsim/run-tests.py @@ -84,7 +84,7 @@ def add_log_file(conn, test, run, type, path): if not os.path.exists(path): return contents = None - with open(path, 'r') as f: + with open(path, 'rb') as f: contents = f.read() if contents is None: return