[PATCH] D66873: [Test][Time profiler] Fix test for python3
Anton Afanasyev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 28 23:48:49 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL370300: [Test][Time profiler] Fix test for python3 (authored by anton-afanasyev, committed by ).
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Changed prior to commit:
https://reviews.llvm.org/D66873?vs=217613&id=217780#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D66873/new/
https://reviews.llvm.org/D66873
Files:
cfe/trunk/test/Driver/check-time-trace-sections.py
Index: cfe/trunk/test/Driver/check-time-trace-sections.py
===================================================================
--- cfe/trunk/test/Driver/check-time-trace-sections.py
+++ cfe/trunk/test/Driver/check-time-trace-sections.py
@@ -12,9 +12,9 @@
return b <= c
events = json.loads(sys.stdin.read())["traceEvents"]
-codegens = filter(lambda x: x["name"] == "CodeGen Function", events)
-frontends = filter(lambda x: x["name"] == "Frontend", events)
-backends = filter(lambda x: x["name"] == "Backend", events)
+codegens = [event for event in events if event["name"] == "CodeGen Function"]
+frontends = [event for event in events if event["name"] == "Frontend"]
+backends = [event for event in events if event["name"] == "Backend"]
if not all([any([is_inside(codegen, frontend) for frontend in frontends])
for codegen in codegens]):
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D66873.217780.patch
Type: text/x-patch
Size: 873 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190829/9fe9f657/attachment.bin>
More information about the cfe-commits
mailing list