summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Volkl <valentin.volkl@cern.ch>2021-05-19 18:28:14 +0200
committerGitHub <noreply@github.com>2021-05-19 16:28:14 +0000
commit88192bfd4ab32c7c8c76516d88b78a54cd6fd639 (patch)
treeb4ef319173c9b65e22c79598ce315a285c909e86
parent9e3cb78fb1aedfc4af853673f70eb553f3c55f90 (diff)
downloadspack-88192bfd4ab32c7c8c76516d88b78a54cd6fd639.tar.gz
spack-88192bfd4ab32c7c8c76516d88b78a54cd6fd639.tar.bz2
spack-88192bfd4ab32c7c8c76516d88b78a54cd6fd639.tar.xz
spack-88192bfd4ab32c7c8c76516d88b78a54cd6fd639.zip
Write junit-report to reports directory to allow installation from read-only spack (#20158)
-rw-r--r--lib/spack/spack/cmd/install.py2
-rw-r--r--lib/spack/spack/paths.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/spack/spack/cmd/install.py b/lib/spack/spack/cmd/install.py
index 5b73c68de7..587f039656 100644
--- a/lib/spack/spack/cmd/install.py
+++ b/lib/spack/spack/cmd/install.py
@@ -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)
diff --git a/lib/spack/spack/paths.py b/lib/spack/spack/paths.py
index 7a1fee4294..b0ff031dd1 100644
--- a/lib/spack/spack/paths.py
+++ b/lib/spack/spack/paths.py
@@ -53,6 +53,8 @@ mock_packages_path = os.path.join(repos_path, "builtin.mock")
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")