From d9c5b7de103321f104fc19019caee6d421cd3c59 Mon Sep 17 00:00:00 2001 From: Todd Gamblin Date: Sun, 22 Mar 2020 15:46:54 -0700 Subject: 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 ............... ``` --- lib/spack/spack/installer.py | 5 ++--- 1 file 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): -- cgit v1.2.3-70-g09d2