Files
tpm/tests/expect_successful_multiple_plugins_download
T

44 lines
573 B
Plaintext
Raw Normal View History

2015-06-02 22:47:32 +02:00
#!/usr/bin/env expect
# disables script output
log_user 0
spawn tmux
# Waiting for tmux to attach. If this is not done, next command, `send` will
# not work properly.
sleep 1
# this is tmux prefix + I
send "I"
# cloning might take a while
set timeout 15
2015-08-02 22:46:57 +02:00
expect_after {
timeout { exit 1 }
}
2015-06-02 22:47:32 +02:00
2015-08-02 22:46:57 +02:00
expect {
"Installing \"tmux-example-plugin\""
}
2015-06-02 22:47:32 +02:00
2015-08-02 22:46:57 +02:00
expect {
"\"tmux-example-plugin\" download success"
}
2015-06-02 22:47:32 +02:00
2015-08-02 22:46:57 +02:00
expect {
"Installing \"tmux-copycat\""
}
2015-06-02 22:47:32 +02:00
2015-08-02 22:46:57 +02:00
expect {
"\"tmux-copycat\" download success"
}
2015-06-02 22:47:32 +02:00
2015-08-02 22:46:57 +02:00
expect {
"Done, press ENTER to continue." {
exit 0
2015-06-02 22:47:32 +02:00
}
}
2015-08-02 22:46:57 +02:00
exit 1