diff options
-rw-r--r-- | test/fixtures/lftp/.lftp/bookmarks | 1 | ||||
-rw-r--r-- | test/lib/completions/lftp.exp | 6 |
2 files changed, 6 insertions, 1 deletions
diff --git a/test/fixtures/lftp/.lftp/bookmarks b/test/fixtures/lftp/.lftp/bookmarks new file mode 100644 index 00000000..31ec9303 --- /dev/null +++ b/test/fixtures/lftp/.lftp/bookmarks @@ -0,0 +1 @@ +lftptest ftp://ftp.funet.fi/ diff --git a/test/lib/completions/lftp.exp b/test/lib/completions/lftp.exp index 4bdde376..a49a1935 100644 --- a/test/lib/completions/lftp.exp +++ b/test/lib/completions/lftp.exp @@ -1,4 +1,5 @@ proc setup {} { + assert_bash_exec {HOME=$TESTDIR/fixtures/lftp} save_env }; # setup() @@ -11,7 +12,10 @@ proc teardown {} { setup -assert_complete_any "lftp " +set expected [get_hosts] +# `lftptest' is defined in ./fixtures/lftp/.lftp/bookmarks +lappend expected lftptest +assert_complete $expected "lftp " sync_after_int |