Write junit-report to reports directory to allow installation from read-only spack (#20158)
This commit is contained in:
parent
9e3cb78fb1
commit
88192bfd4a
@ -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)
|
||||
|
||||
|
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user