summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
author百地 希留耶 <65301509+KiruyaMomochi@users.noreply.github.com>2022-03-10 00:09:57 +0900
committerGitHub <noreply@github.com>2022-03-09 16:09:57 +0100
commit3370d3f57e2685963ed155e86ce635e1e0644b83 (patch)
tree4ff259c2d14df91fe6aefd838329ffaeb757829b /share
parent3df90e3e33dd9857a8d9bdd206a8a1ed2fd82675 (diff)
downloadspack-3370d3f57e2685963ed155e86ce635e1e0644b83.tar.gz
spack-3370d3f57e2685963ed155e86ce635e1e0644b83.tar.bz2
spack-3370d3f57e2685963ed155e86ce635e1e0644b83.tar.xz
spack-3370d3f57e2685963ed155e86ce635e1e0644b83.zip
Fix tab completion erroring with `spack unit-test` (#29405)
Diffstat (limited to 'share')
-rwxr-xr-xshare/spack/bash/spack-completion.in4
-rwxr-xr-xshare/spack/spack-completion.bash6
2 files changed, 5 insertions, 5 deletions
diff --git a/share/spack/bash/spack-completion.in b/share/spack/bash/spack-completion.in
index 803563d9ce..f9cf846ec5 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 bd7ae6db25..ff8506d36e 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"
}
@@ -1793,7 +1793,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
}