summaryrefslogtreecommitdiff
path: root/test/lib/completions/ssh-copy-id.exp
blob: 5abe303d7f8ccb95c4861c81822a37044695efdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
proc setup {} {
    save_env
    # Some old versions of ssh-copy-id won't output even usage if no
    # identities are found. Try to make sure there is at least one (for CI).
    assert_bash_exec {OLDHOME=$HOME ; HOME=$SRCDIR/fixtures/ssh-copy-id}
}


proc teardown {} {
    assert_bash_exec {HOME=$OLDHOME}
    assert_env_unmodified {
        /OLDHOME=/d
    }
}


setup


assert_complete_any "ssh-copy-id -"


sync_after_int


teardown