Remove deprecated "--run-tests" option of "spack install" (#30461)

This commit is contained in:
Massimiliano Culpo
2022-05-04 07:43:29 +02:00
committed by GitHub
parent 96f9a1d88b
commit 5c7d6c6e10
3 changed files with 2 additions and 10 deletions

View File

@@ -159,10 +159,6 @@ def setup_parser(subparser):
if 'all' is chosen, run package tests during installation for all
packages. If neither are chosen, don't run tests for any packages."""
)
testing.add_argument(
'--run-tests', action='store_true',
help='run package tests during installation (same as --test=all)'
)
subparser.add_argument(
'--log-format',
default=None,
@@ -316,11 +312,8 @@ def install(parser, args, **kwargs):
if args.log_file:
reporter.filename = args.log_file
if args.run_tests:
tty.warn("Deprecated option: --run-tests: use --test=all instead")
def get_tests(specs):
if args.test == 'all' or args.run_tests:
if args.test == 'all':
return True
elif args.test == 'root':
return [spec.name for spec in specs]

View File

@@ -87,7 +87,6 @@ def check(pkg):
monkeypatch.setattr(spack.package.PackageBase, 'unit_test_check', check)
install('--test=all', 'a')
install('--run-tests', 'a')
def test_install_package_already_installed(