Files
tpm/tests/expect_successful_plugin_download
T

35 lines
540 B
Plaintext
Raw Normal View History

2014-05-24 15:38:41 +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
expect {
"Downloading tmux-plugins/tmux-example-plugin" {
2014-05-24 15:38:41 +02:00
expect {
"tmux-plugins/tmux-example-plugin download success" {
2014-05-24 15:38:41 +02:00
expect { "Done, press ENTER to continue" { exit } }
}
}
}
timeout {
puts "Plugin update timeout";
exit 1
}
}