summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/spack/spack/cmd/commands.py2
-rwxr-xr-xshare/spack/bash/spack-completion.in4
-rwxr-xr-xshare/spack/spack-completion.bash6
3 files changed, 6 insertions, 6 deletions
diff --git a/lib/spack/spack/cmd/commands.py b/lib/spack/spack/cmd/commands.py
index f58c0aab4b..2f6186a7db 100644
--- a/lib/spack/spack/cmd/commands.py
+++ b/lib/spack/spack/cmd/commands.py
@@ -117,7 +117,7 @@ _positional_to_subroutine = {
'virtual': '_providers',
'namespace': '_repos',
'hash': '_all_resource_hashes',
- 'pytest': '_tests',
+ 'pytest': '_unit_tests',
}
diff --git a/share/spack/bash/spack-completion.in b/share/spack/bash/spack-completion.in
index 8c01232f5e..bd2814806c 100755
--- a/share/spack/bash/spack-completion.in
+++ b/share/spack/bash/spack-completion.in
@@ -208,10 +208,10 @@ _repos() {
SPACK_COMPREPLY="$SPACK_REPOS"
}
-_tests() {
+_unit_tests() {
if [[ -z "${SPACK_TESTS:-}" ]]
then
- SPACK_TESTS="$(spack test -l)"
+ SPACK_TESTS="$(spack unit-test -l)"
fi
SPACK_COMPREPLY="$SPACK_TESTS"
}
diff --git a/share/spack/spack-completion.bash b/share/spack/spack-completion.bash
index e92a525e63..862fa04a06 100755
--- a/share/spack/spack-completion.bash
+++ b/share/spack/spack-completion.bash
@@ -208,10 +208,10 @@ _repos() {
SPACK_COMPREPLY="$SPACK_REPOS"
}
-_tests() {
+_unit_tests() {
if [[ -z "${SPACK_TESTS:-}" ]]
then
- SPACK_TESTS="$(spack test -l)"
+ SPACK_TESTS="$(spack unit-test -l)"
fi
SPACK_COMPREPLY="$SPACK_TESTS"
}
@@ -1780,7 +1780,7 @@ _spack_unit_test() {
then
SPACK_COMPREPLY="-h --help -H --pytest-help -l --list -L --list-long -N --list-names --extension -s -k --showlocals"
else
- _tests
+ _unit_tests
fi
}