From 70e91cc1e08f3f907efecdd8eac623d8c6c973a7 Mon Sep 17 00:00:00 2001 From: Gregory Becker Date: Wed, 18 Mar 2020 11:40:25 -0700 Subject: [PATCH] spack test: add dirty/clean flags to command --- lib/spack/spack/cmd/test.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/spack/spack/cmd/test.py b/lib/spack/spack/cmd/test.py index a79c6a285c1..bd22b2eb3e5 100644 --- a/lib/spack/spack/cmd/test.py +++ b/lib/spack/spack/cmd/test.py @@ -50,6 +50,9 @@ def setup_parser(subparser): '--capability', action='store_false', dest='smoke_test', default=True, help='run full capability tests using pavilion') + cd_group = subparser.add_mutually_exclusive_group() + arguments.add_common_arguments(cd_group, ['clean', 'dirty']) + subparser.add_argument( 'specs', nargs=argparse.REMAINDER, help="list of specs to test") @@ -106,8 +109,9 @@ def test(parser, args): for spec in specs_to_test: try: spec.package.do_test( + time=now, remove_directory=not args.keep_tmpdir, - time=now) + dirty=args.dirty) except BaseException as e: pass # Test is logged, go on to other tests else: