diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2020-03-22 15:46:54 -0700 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2020-04-15 14:30:58 -0700 |
commit | 740f8fe1a9d732dbfd8140e57b2cb72428c7eff6 (patch) | |
tree | 0a6e0202a0d50fa743dc3d6dff547b7cca0cf066 | |
parent | 430ca7c7cf46b415b58f45057626c4e1b7d36c56 (diff) | |
download | spack-740f8fe1a9d732dbfd8140e57b2cb72428c7eff6.tar.gz spack-740f8fe1a9d732dbfd8140e57b2cb72428c7eff6.tar.bz2 spack-740f8fe1a9d732dbfd8140e57b2cb72428c7eff6.tar.xz spack-740f8fe1a9d732dbfd8140e57b2cb72428c7eff6.zip |
bugfix: spack test should not output [+] for mock installs (#15609)
`spack test` has a spurious '[+] ' in the output:
```
lib/spack/spack/test/install.py .........[+] ......
```
Output is properly suppressed:
```
lib/spack/spack/test/install.py ...............
```
-rw-r--r-- | lib/spack/spack/installer.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/spack/spack/installer.py b/lib/spack/spack/installer.py index a9965c9114..213a85f0dc 100644 --- a/lib/spack/spack/installer.py +++ b/lib/spack/spack/installer.py @@ -48,7 +48,7 @@ import spack.package_prefs as prefs import spack.repo import spack.store -from llnl.util.tty.color import colorize, cwrite +from llnl.util.tty.color import colorize from llnl.util.tty.log import log_output from spack.util.environment import dump_environment from spack.util.executable import which @@ -253,8 +253,7 @@ def _print_installed_pkg(message): Args: message (str): message to be output """ - cwrite('@*g{[+]} ') - print(message) + print(colorize('@*g{[+]} ') + message) def _process_external_package(pkg, explicit): |