mirror of
https://github.com/tmux-plugins/tpm.git
synced 2024-11-12 23:28:47 +00:00
Enhance plugin installation test
This commit is contained in:
parent
70d589eea8
commit
08608064b2
@ -21,7 +21,10 @@ expect {
|
|||||||
expect {
|
expect {
|
||||||
"\"tmux-example-plugin\" download success" {
|
"\"tmux-example-plugin\" download success" {
|
||||||
|
|
||||||
expect { "Done, press ENTER to continue" { exit } }
|
expect { "Done, press ENTER to continue" {
|
||||||
|
send "
"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -29,7 +32,23 @@ expect {
|
|||||||
}
|
}
|
||||||
|
|
||||||
timeout {
|
timeout {
|
||||||
puts "Plugin update 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
|
exit 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user