Files
tpm/tests/expect_failed_plugin_download
T

36 lines
475 B
Plaintext
Raw Normal View History

2015-08-02 18:38:44 +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 20
expect_after {
2015-08-02 22:46:57 +02:00
timeout { exit 1 }
2015-08-02 18:38:44 +02:00
}
expect {
2015-08-02 22:46:57 +02:00
"Installing \"non-existing-plugin\""
}
2015-08-02 18:38:44 +02:00
2015-08-02 22:46:57 +02:00
expect {
"\"non-existing-plugin\" download fail"
}
2015-08-02 18:38:44 +02:00
2015-08-02 22:46:57 +02:00
expect {
"Done, press ENTER to continue" {
exit 0
2015-08-02 18:38:44 +02:00
}
}
2015-08-02 22:46:57 +02:00
exit 1