From 88192bfd4ab32c7c8c76516d88b78a54cd6fd639 Mon Sep 17 00:00:00 2001 From: Valentin Volkl Date: Wed, 19 May 2021 18:28:14 +0200 Subject: Write junit-report to reports directory to allow installation from read-only spack (#20158) --- lib/spack/spack/cmd/install.py | 2 +- lib/spack/spack/paths.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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") -- cgit v1.2.3-60-g2f50