fusermount: Use _parse_help, add basic test case.
This commit is contained in:
parent
20a3d4d0bd
commit
db86b76eba
@ -20,7 +20,7 @@ _fusermount()
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
if [[ "$cur" == -* ]] ; then
|
if [[ "$cur" == -* ]] ; then
|
||||||
COMPREPLY=( $( compgen -W '-h -V -o -u -q -z' -- "$cur" ) )
|
COMPREPLY=( $( compgen -W '$( _parse_help "$1" -h )' -- "$cur" ) )
|
||||||
else
|
else
|
||||||
_filedir -d
|
_filedir -d
|
||||||
fi
|
fi
|
||||||
|
1
test/completion/fusermount.exp
Normal file
1
test/completion/fusermount.exp
Normal file
@ -0,0 +1 @@
|
|||||||
|
assert_source_completions fusermount
|
20
test/lib/completions/fusermount.exp
Normal file
20
test/lib/completions/fusermount.exp
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
proc setup {} {
|
||||||
|
save_env
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
proc teardown {} {
|
||||||
|
assert_env_unmodified
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
setup
|
||||||
|
|
||||||
|
|
||||||
|
assert_complete_any "fusermount "
|
||||||
|
|
||||||
|
|
||||||
|
sync_after_int
|
||||||
|
|
||||||
|
|
||||||
|
teardown
|
Loading…
x
Reference in New Issue
Block a user