diff options
Diffstat (limited to 'test/lib/completions/modprobe.exp')
-rw-r--r-- | test/lib/completions/modprobe.exp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/test/lib/completions/modprobe.exp b/test/lib/completions/modprobe.exp index a1cd6987..b0a530ef 100644 --- a/test/lib/completions/modprobe.exp +++ b/test/lib/completions/modprobe.exp @@ -11,15 +11,18 @@ proc teardown {} { setup -set test "--remov<TAB> should complete \"--remove\"" -assert_complete "--remove" "modprobe --remov" $test +set test "--al<TAB> should complete \"--all\"" +assert_complete "--all" "modprobe --al" $test sync_after_int -set test "in<TAB> should complete modulename" -assert_complete_any "modprobe in" $test +set uname [exec bash -c "uname -r"] +if {[assert_exec "ls /lib/modules/$uname" "" "" "unsupported"]} { + set test "in<TAB> should complete modulename" + assert_complete_any "modprobe in" $test +} sync_after_int |