diff options
Diffstat (limited to 'test/lib/completions/modinfo.exp')
-rw-r--r-- | test/lib/completions/modinfo.exp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/lib/completions/modinfo.exp b/test/lib/completions/modinfo.exp index bd8f965c..90e9702a 100644 --- a/test/lib/completions/modinfo.exp +++ b/test/lib/completions/modinfo.exp @@ -11,8 +11,11 @@ proc teardown {} { setup -set test "in<TAB> should complete modulename" -assert_complete_any "modinfo 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 "modinfo in" $test +} sync_after_int |