diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2020-03-22 15:46:54 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-22 15:46:54 -0700 |
commit | d9c5b7de103321f104fc19019caee6d421cd3c59 (patch) | |
tree | e8a71cb1381c2daa712eba6dfbcbbba0a50fb8ff /lib | |
parent | 62787a7a3b504e4382e6a8729d8fd5f4392d5b43 (diff) | |
download | spack-d9c5b7de103321f104fc19019caee6d421cd3c59.tar.gz spack-d9c5b7de103321f104fc19019caee6d421cd3c59.tar.bz2 spack-d9c5b7de103321f104fc19019caee6d421cd3c59.tar.xz spack-d9c5b7de103321f104fc19019caee6d421cd3c59.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 ...............
```
Diffstat (limited to 'lib')
-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): |