Bug 1519092 - Fix a shadowing variable in WptreportHandler; r=jgraham
authorMs2ger <Ms2ger@igalia.com>
Tue, 15 Jan 2019 14:00:31 +0100
changeset 511108 704b7807054c98b4024270cabadc5dee3124b918
parent 511107 f85dfb48fbe26995027fed3e729448a8ee861a11
child 511109 1d0d0fed3608b845bde92823eb157cd8ce611d21
push id10547
push userffxbld-merge
push dateMon, 21 Jan 2019 13:03:58 +0000
treeherdermozilla-beta@24ec1916bffe [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjgraham
bugs1519092
milestone66.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1519092 - Fix a shadowing variable in WptreportHandler; r=jgraham
js/src/tests/lib/wptreport.py
--- a/js/src/tests/lib/wptreport.py
+++ b/js/src/tests/lib/wptreport.py
@@ -61,17 +61,17 @@ class WptreportHandler(object):
         end_time = time()
         start_time = end_time - duration
 
         self.formatter.test_start({
             "test": testname,
             "time": start_time,
         })
 
-        for result in result["subtests"]:
-            self.formatter.test_status(result)
+        for subtest in result["subtests"]:
+            self.formatter.test_status(subtest)
 
         self.formatter.test_end({
             "test": testname,
             "time": end_time,
             "status": result["status"],
             "expected": result["expected"],
         })