Index: tools/run_perf.py |
diff --git a/tools/run_perf.py b/tools/run_perf.py |
index f7710796bc3e7c651e4effcae031e1fd95eec129..84cc712308c60c7fb45b02067f6ddb347e15457b 100755 |
--- a/tools/run_perf.py |
+++ b/tools/run_perf.py |
@@ -411,8 +411,8 @@ def MakeGraph(suite, arch, parent): |
if isinstance(parent, Runnable): |
# Below a runnable can only be traces. |
return Trace(suite, parent, arch) |
- elif suite.get("main"): |
- # A main file makes this graph runnable. |
+ elif suite.get("main") is not None: |
+ # A main file makes this graph runnable. Empty strings are accepted. |
if suite.get("tests"): |
# This graph has subgraphs (traces). |
return Runnable(suite, parent, arch) |