Skip to content

Commit 15baeb1

Browse files
committed
fix bazel logging
Signed-off-by: Ethan Mahintorabi <[email protected]>
1 parent 0001456 commit 15baeb1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/helpers.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,12 @@ def diff_files(file1, file2, ignore=None):
4949
if ignore:
5050
ignore = re.compile(ignore)
5151

52-
report_function = utl.report
52+
# If we're in bazel use print as the global utl functions
53+
# have been removed.
5354
if os.environ.get("TEST_SRCDIR", ""):
5455
report_function = print
56+
else:
57+
report_function = utl.report
5558

5659
with open(file1, "r") as f:
5760
lines1 = f.readlines()

0 commit comments

Comments
 (0)