summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
author百地 希留耶 <65301509+KiruyaMomochi@users.noreply.github.com>2022-03-10 00:09:57 +0900
committerMassimiliano Culpo <massimiliano.culpo@gmail.com>2022-04-14 11:08:17 +0200
commitd4f23268245333bb32f13606dbc3d53c1f862002 (patch)
tree03b3a2f763658f8ec206332884668b5af7072e2c /share
parent9edfd251348860bcfa041bfa28502fa384f3baf6 (diff)
downloadspack-d4f23268245333bb32f13606dbc3d53c1f862002.tar.gz
spack-d4f23268245333bb32f13606dbc3d53c1f862002.tar.bz2
spack-d4f23268245333bb32f13606dbc3d53c1f862002.tar.xz
spack-d4f23268245333bb32f13606dbc3d53c1f862002.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 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
}