From 637fd446d926fc35d14fbe59fe38117997b9d582 Mon Sep 17 00:00:00 2001 From: Aaron Smith Date: Mon, 2 Apr 2018 22:34:35 +0000 Subject: [PATCH] [lit] One more try at fixing TestRunner.py for D43165 llvm-svn: 329026 --- llvm/utils/lit/lit/TestRunner.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/llvm/utils/lit/lit/TestRunner.py b/llvm/utils/lit/lit/TestRunner.py index d0c7417..f004952 100644 --- a/llvm/utils/lit/lit/TestRunner.py +++ b/llvm/utils/lit/lit/TestRunner.py @@ -2,6 +2,7 @@ from __future__ import absolute_import import difflib import errno import functools +import io import itertools import getopt import os, signal, subprocess, sys @@ -387,6 +388,8 @@ def executeBuiltinDiff(cmd, cmd_shenv): return path, sorted(child_trees) def compareTwoFiles(filepaths): + compare_bytes = False + encoding = None filelines = [] for file in filepaths: compare_bytes = False -- 2.7.4