Bug 1316281 - Part 3 - Fix TelemetrySession filter for test events. r=dexter
☠☠ backed out by dd01d903f823 ☠ ☠
authorGeorg Fritzsche <georg.fritzsche@googlemail.com>
Thu, 01 Dec 2016 14:57:32 +0100
changeset 325013 2c711bb8e3738cc21e509df3c9aaf66071a4712c
parent 325012 b3ea1334c33a48a50c21daf6150cf51651b1d16f
child 325014 9ad9c6b4c8d632aa4db6e7e5efe42c7e9516fc99
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");