Fix running only failed for python3

Change-Id: I7fa567b920939032312b1e645f4582174c4bd54e
diff --git a/tools/test.py b/tools/test.py
index 665ab5f..0e3bf0f 100755
--- a/tools/test.py
+++ b/tools/test.py
@@ -530,7 +530,7 @@
   print("Reading failed tests in", report)
   failing = set()
   inFailedSection = False
-  for line in file(report):
+  for line in open(report):
     l = line.strip()
     if l == "<h2>Failed tests</h2>":
       inFailedSection = True