mirror of
https://github.com/tmux-plugins/tpm.git
synced 2025-09-05 17:26:58 +00:00
Enhance plugin installation test
This commit is contained in:
@ -21,7 +21,10 @@ expect {
|
||||
expect {
|
||||
"\"tmux-example-plugin\" download success" {
|
||||
|
||||
expect { "Done, press ENTER to continue" { exit } }
|
||||
expect { "Done, press ENTER to continue" {
|
||||
send "
|
||||
"
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@ -29,7 +32,23 @@ expect {
|
||||
|
||||
}
|
||||
|
||||
puts "Plugin update timeout";
|
||||
timeout {
|
||||
puts "Plugin installation timeout (1)";
|
||||
exit 1
|
||||
}
|
||||
}
|
||||
|
||||
# this is tmux prefix + I
|
||||
send "I"
|
||||
|
||||
expect {
|
||||
"Already installed \"tmux-example-plugin\"" {
|
||||
|
||||
expect { "Done, press ENTER to continue" { exit 0 } }
|
||||
|
||||
}
|
||||
|
||||
timeout {
|
||||
puts "Plugin installation timeout (2)";
|
||||
exit 1
|
||||
}
|
||||
|
Reference in New Issue
Block a user