diff options
author | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2024-07-16 06:58:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-16 06:58:36 +0200 |
commit | 42232a8ab6d9c31eb0c943111d2639e0d6a3076f (patch) | |
tree | bf097468389c2faccbbb84a188773ae478db152e /lib | |
parent | cb64df45c8270b56cd76cffa055d8aa047a92fbb (diff) | |
download | spack-42232a8ab6d9c31eb0c943111d2639e0d6a3076f.tar.gz spack-42232a8ab6d9c31eb0c943111d2639e0d6a3076f.tar.bz2 spack-42232a8ab6d9c31eb0c943111d2639e0d6a3076f.tar.xz spack-42232a8ab6d9c31eb0c943111d2639e0d6a3076f.zip |
Fix error message for test log in child process (#45233)
If we don't have a log, we'll mask the real error with
another caused by using None as an argument to os.path.join
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/build_environment.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/build_environment.py b/lib/spack/spack/build_environment.py index 2b8cc1fca1..c02c3bc818 100644 --- a/lib/spack/spack/build_environment.py +++ b/lib/spack/spack/build_environment.py @@ -1473,7 +1473,7 @@ class ChildError(InstallError): out.write(" {0}\n".format(self.log_name)) # Also output the test log path IF it exists - if self.context != "test": + if self.context != "test" and have_log: test_log = join_path(os.path.dirname(self.log_name), spack_install_test_log) if os.path.isfile(test_log): out.write("\nSee test log for details:\n") |