Skip to content

Commit

Permalink
bugfix: spack test should not output [+] for mock installs (spack#15609)
Browse files Browse the repository at this point in the history
`spack test` has a spurious '[+] ' in the output:

```
lib/spack/spack/test/install.py .........[+] ......
```

Output is properly suppressed:

```
lib/spack/spack/test/install.py ...............
```
  • Loading branch information
tgamblin committed Apr 15, 2020
1 parent 430ca7c commit 740f8fe
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/spack/spack/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
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
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 740f8fe

Please sign in to comment.