diff options
author | Igor Murzov <e-mail@date.by> | 2012-01-09 16:25:00 +0400 |
---|---|---|
committer | Igor Murzov <e-mail@date.by> | 2012-01-09 16:25:00 +0400 |
commit | b515b0dd38158d990be1315db3f8d98f4cb39115 (patch) | |
tree | b060ee20f88402ac890e74a825dc7a396406e4b3 /test | |
parent | 694313874a8ef025c5bbbf2a57de058fb684e9b9 (diff) | |
parent | d0a14954ab45cb79aba9bff44d5ba910eac7925d (diff) | |
download | bash-completion-b515b0dd38158d990be1315db3f8d98f4cb39115.tar.gz |
Merge remote-tracking branch 'origin/sudo'
* origin/sudo:
sudoedit: New completion.
sudo: Fix option list parsing
sudo: Handle options (Alioth: #311414).
Diffstat (limited to 'test')
-rw-r--r-- | test/lib/completions/sudo.exp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/lib/completions/sudo.exp b/test/lib/completions/sudo.exp index 6108ddce..5fdb97f1 100644 --- a/test/lib/completions/sudo.exp +++ b/test/lib/completions/sudo.exp @@ -32,6 +32,15 @@ assert_complete_dir "default/" "sudo mount /dev/sda1 def" $::srcdir/fixtures/sha sync_after_int +set test "sudo -e should complete filenames and directories" +set dir $::srcdir/fixtures/shared/default +set files {foo foo.d/} +assert_complete_dir $files "sudo -e -u root bar foo" $dir $test + + +sync_after_int + + # Find user/group suitable for testing. set failed_find_unique_completion 0 foreach ug {user group} { |