Write junit-report to reports directory to allow installation from read-only spack (#20158)

This commit is contained in:
Valentin Volkl 2021-05-19 18:28:14 +02:00 committed by GitHub
parent 9e3cb78fb1
commit 88192bfd4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -190,7 +190,7 @@ def default_log_file(spec):
"""
fmt = 'test-{x.name}-{x.version}-{hash}.xml'
basename = fmt.format(x=spec, hash=spec.dag_hash())
dirname = fs.os.path.join(spack.paths.var_path, 'junit-report')
dirname = fs.os.path.join(spack.paths.reports_path, 'junit')
fs.mkdirp(dirname)
return fs.os.path.join(dirname, basename)

View File

@ -53,6 +53,8 @@
user_config_path = os.path.expanduser('~/.spack')
user_bootstrap_path = os.path.join(user_config_path, 'bootstrap')
user_bootstrap_store = os.path.join(user_bootstrap_path, 'store')
reports_path = os.path.join(user_config_path, "reports")
opt_path = os.path.join(prefix, "opt")
etc_path = os.path.join(prefix, "etc")