Bug 1316281 - Part 3 - Fix TelemetrySession filter for test events. r=dexter
authorGeorg Fritzsche <georg.fritzsche@googlemail.com>
Fri, 02 Dec 2016 12:17:12 +0100
changeset 325132 81738db2f99b78838243c1345985094c5a0a4795
parent 325131 1a33a480ca2ee660877fd91afa5cb4b813d640dd
child 325133 1f73de3c604de4b6d087df99171cb0d3ef9ce498
push id24
push usermaklebus@msu.edu
push dateTue, 20 Dec 2016 03:11:33 +0000
reviewersdexter
bugs1316281
milestone53.0a1
Bug 1316281 - Part 3 - Fix TelemetrySession filter for test events. r=dexter
toolkit/components/telemetry/TelemetrySession.jsm
--- a/toolkit/components/telemetry/TelemetrySession.jsm
+++ b/toolkit/components/telemetry/TelemetrySession.jsm
@@ -1015,17 +1015,17 @@ var Impl = {
       return [];
     }
 
     let events = Telemetry.snapshotBuiltinEvents(this.getDatasetType(),
                                                  clearSubsession);
 
     // Don't return the test events outside of test environments.
     if (!this._testing) {
-      events = events.filter(e => e[1].startsWith("telemetry.test"));
+      events = events.filter(e => !e[1].startsWith("telemetry.test"));
     }
 
     return events;
   },
 
   getThreadHangStats: function getThreadHangStats(stats) {
     this._log.trace("getThreadHangStats");