diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2013-10-17 14:53:40 -0700 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2013-10-17 14:53:40 -0700 |
commit | 481a617d65a17bc19f4e78c4227566d587c94df3 (patch) | |
tree | 4e5b3733791a4bd0870a55f833dc6c62f432baba /lib | |
parent | 558cf7e40689fc18eca47bc80d34da555b5d27d5 (diff) | |
download | spack-481a617d65a17bc19f4e78c4227566d587c94df3.tar.gz spack-481a617d65a17bc19f4e78c4227566d587c94df3.tar.bz2 spack-481a617d65a17bc19f4e78c4227566d587c94df3.tar.xz spack-481a617d65a17bc19f4e78c4227566d587c94df3.zip |
spack test runs all tests by default
'spack test -a' formerly ran all test and 'spack test' listed available tests.
Now, 'spack test' runs all tests and 'spack test -l' lists available ones.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/cmd/test.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/spack/spack/cmd/test.py b/lib/spack/spack/cmd/test.py index 80eeff34ac..c9752fbbac 100644 --- a/lib/spack/spack/cmd/test.py +++ b/lib/spack/spack/cmd/test.py @@ -11,22 +11,22 @@ def setup_parser(subparser): subparser.add_argument( 'names', nargs='*', help="Names of packages to install") subparser.add_argument( - '-a', '--all', action='store_true', dest='all', help="Run all tests") + '-l', '--list', action='store_true', dest='list', help="Show available tests") subparser.add_argument( '-v', '--verbose', action='store_true', dest='verbose', help="verbose output") def test(parser, args): - if args.all: + if args.list: + print "Available tests:" + colify(list_modules(spack.test_path, directories=False)) + + elif not args.names: for name in list_modules(spack.test_path, directories=False): print "Running Tests: %s" % name spack.test.run(name, verbose=args.verbose) - elif not args.names: - print "Available tests:" - colify(list_modules(spack.test_path, directories=False)) - else: for name in args.names: spack.test.run(name, verbose=args.verbose) |