From 5c7d6c6e100bd5ac331e8679e810de08516228bf Mon Sep 17 00:00:00 2001 From: Massimiliano Culpo Date: Wed, 4 May 2022 07:43:29 +0200 Subject: Remove deprecated "--run-tests" option of "spack install" (#30461) --- lib/spack/spack/cmd/install.py | 9 +-------- lib/spack/spack/test/cmd/install.py | 1 - 2 files changed, 1 insertion(+), 9 deletions(-) (limited to 'lib') diff --git a/lib/spack/spack/cmd/install.py b/lib/spack/spack/cmd/install.py index e95f118956..974f10f047 100644 --- a/lib/spack/spack/cmd/install.py +++ b/lib/spack/spack/cmd/install.py @@ -159,10 +159,6 @@ installation for top-level packages (but skip tests for dependencies). 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 @@ environment variables: 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] diff --git a/lib/spack/spack/test/cmd/install.py b/lib/spack/spack/test/cmd/install.py index 496656e69a..fea3431a73 100644 --- a/lib/spack/spack/test/cmd/install.py +++ b/lib/spack/spack/test/cmd/install.py @@ -87,7 +87,6 @@ def test_install_runtests_all(monkeypatch, mock_packages, install_mockery): monkeypatch.setattr(spack.package.PackageBase, 'unit_test_check', check) install('--test=all', 'a') - install('--run-tests', 'a') def test_install_package_already_installed( -- cgit v1.2.3-70-g09d2