summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Pickering <matthew.pickering@tweag.io>2018-05-03 12:35:07 -0400
committerBen Gamari <ben@smart-cactus.org>2018-05-03 12:35:08 -0400
commit107d2cb7cc1e9c6d2226c3965e83a1b59d89ed04 (patch)
tree8fcb736a31a71c371d8f984a7f3a7e80d286ae33
parentcf35ab9ac7e0f33e39af6af16ecf850e24c2cb79 (diff)
downloadhaskell-107d2cb7cc1e9c6d2226c3965e83a1b59d89ed04.tar.gz
Don't shadow "result" in JUnit driver
Reviewers: bgamari Reviewed By: bgamari Subscribers: thomie, carter GHC Trac Issues: #15093 Differential Revision: https://phabricator.haskell.org/D4645
-rw-r--r--testsuite/driver/junit.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuite/driver/junit.py b/testsuite/driver/junit.py
index 01a5f47acc..f2dbebb96a 100644
--- a/testsuite/driver/junit.py
+++ b/testsuite/driver/junit.py
@@ -11,14 +11,14 @@ def junit(t):
errors = str(len(t.framework_failures)),
timestamp = datetime.now().isoformat())
- for result, group in [('stat failure', t.unexpected_stat_failures),
+ for res_type, group in [('stat failure', t.unexpected_stat_failures),
('unexpected failure', t.unexpected_failures)]:
for (directory, testname, reason, way) in group:
testcase = ET.SubElement(testsuite, 'testcase',
classname = testname,
name = way)
result = ET.SubElement(testcase, 'failure',
- type = result,
+ type = res_type,
message = reason)
for (directory, testname, reason, way) in t.framework_failures: