summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2022-05-04 07:43:29 +0200
committerGitHub <noreply@github.com>2022-05-04 07:43:29 +0200
commit5c7d6c6e100bd5ac331e8679e810de08516228bf (patch)
treee5f2a6bef05e34c1f010321a0cc4b83a6cfa6022 /lib
parent96f9a1d88b2c25a37f97dcf96e596a7706cc4a2d (diff)
downloadspack-5c7d6c6e100bd5ac331e8679e810de08516228bf.tar.gz
spack-5c7d6c6e100bd5ac331e8679e810de08516228bf.tar.bz2
spack-5c7d6c6e100bd5ac331e8679e810de08516228bf.tar.xz
spack-5c7d6c6e100bd5ac331e8679e810de08516228bf.zip
Remove deprecated "--run-tests" option of "spack install" (#30461)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/cmd/install.py9
-rw-r--r--lib/spack/spack/test/cmd/install.py1
2 files changed, 1 insertions, 9 deletions
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(