diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2016-08-07 17:54:37 -0700 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2016-08-08 21:04:23 -0700 |
commit | 1339714eecc927e46a1336241512483dd8d11eab (patch) | |
tree | 5a834a55dbb305b87db64556f6879bcaeab9e67b /lib | |
parent | 5d690c9270bd20366923da4bc1b8498621c2ff69 (diff) | |
download | spack-1339714eecc927e46a1336241512483dd8d11eab.tar.gz spack-1339714eecc927e46a1336241512483dd8d11eab.tar.bz2 spack-1339714eecc927e46a1336241512483dd8d11eab.tar.xz spack-1339714eecc927e46a1336241512483dd8d11eab.zip |
Restore text output in verbose mode.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/test/__init__.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/spack/spack/test/__init__.py b/lib/spack/spack/test/__init__.py index 3cc7ed512b..7795cb59c7 100644 --- a/lib/spack/spack/test/__init__.py +++ b/lib/spack/spack/test/__init__.py @@ -89,6 +89,10 @@ def list_tests(): def run(names, outputDir, verbose=False): """Run tests with the supplied names. Names should be a list. If it's empty, run ALL of Spack's tests.""" + # Print output to stdout if verbose is 1. + if verbose: + os.environ['NOSE_NOCAPTURE'] = '1' + if not names: names = test_names else: |