summaryrefslogtreecommitdiff
path: root/lib/spack/spack/reporters/junit.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/spack/spack/reporters/junit.py')
-rw-r--r--lib/spack/spack/reporters/junit.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/spack/spack/reporters/junit.py b/lib/spack/spack/reporters/junit.py
index fa19bdd2bd..f845974d9d 100644
--- a/lib/spack/spack/reporters/junit.py
+++ b/lib/spack/spack/reporters/junit.py
@@ -10,7 +10,7 @@ import spack.fetch_strategy
import spack.package_base
from spack.reporter import Reporter
-__all__ = ['JUnit']
+__all__ = ["JUnit"]
class JUnit(Reporter):
@@ -20,11 +20,11 @@ class JUnit(Reporter):
Reporter.__init__(self, args)
# Posixpath is used here to support the underlying template enginge
# Jinja2, which expects `/` path separators
- self.template_file = posixpath.join('reports', 'junit.xml')
+ self.template_file = posixpath.join("reports", "junit.xml")
def build_report(self, filename, report_data):
# Write the report
- with open(filename, 'w') as f:
+ with open(filename, "w") as f:
env = spack.tengine.make_environment()
t = env.get_template(self.template_file)
f.write(t.render(report_data))