summaryrefslogtreecommitdiff
path: root/share/spack/spack-completion.bash
diff options
context:
space:
mode:
authorTamara Dahlgren <35777542+tldahlgren@users.noreply.github.com>2021-11-02 02:00:21 -0700
committerGitHub <noreply@github.com>2021-11-02 10:00:21 +0100
commit9d3d7c68fb76d112ab048b2cc581d48bc22aa9f4 (patch)
treed5fdd24917b5ef168441a68c8c35e23790e625c1 /share/spack/spack-completion.bash
parent94e0bf01126354b4d2491686b44032a0d42db57e (diff)
downloadspack-9d3d7c68fb76d112ab048b2cc581d48bc22aa9f4.tar.gz
spack-9d3d7c68fb76d112ab048b2cc581d48bc22aa9f4.tar.bz2
spack-9d3d7c68fb76d112ab048b2cc581d48bc22aa9f4.tar.xz
spack-9d3d7c68fb76d112ab048b2cc581d48bc22aa9f4.zip
Add tag filters to `spack test list` (#26842)
Diffstat (limited to 'share/spack/spack-completion.bash')
-rwxr-xr-xshare/spack/spack-completion.bash7
1 files changed, 6 insertions, 1 deletions
diff --git a/share/spack/spack-completion.bash b/share/spack/spack-completion.bash
index c34c954e5e..a5610f5872 100755
--- a/share/spack/spack-completion.bash
+++ b/share/spack/spack-completion.bash
@@ -1696,7 +1696,12 @@ _spack_test_run() {
}
_spack_test_list() {
- SPACK_COMPREPLY="-h --help -a --all"
+ if $list_options
+ then
+ SPACK_COMPREPLY="-h --help -a --all"
+ else
+ SPACK_COMPREPLY=""
+ fi
}
_spack_test_find() {