mirror of
https://github.com/tmux-plugins/tpm.git
synced 2025-09-14 00:46:56 +00:00
Refactor test 'expect' scripts
Make test 'expect' scripts simpler and ensure expectations are properly asserted. Closes #46
This commit is contained in:
@ -16,26 +16,21 @@ send "I"
|
||||
set timeout 20
|
||||
|
||||
expect_after {
|
||||
timeout {
|
||||
puts "Plugin installation timeout"
|
||||
exit 1
|
||||
}
|
||||
timeout { exit 1 }
|
||||
}
|
||||
|
||||
expect {
|
||||
"Installing \"non-existing-plugin\"" {
|
||||
"Installing \"non-existing-plugin\""
|
||||
}
|
||||
|
||||
expect {
|
||||
"\"non-existing-plugin\" download fail" {
|
||||
|
||||
expect {
|
||||
"Done, press ENTER to continue" {
|
||||
exit
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
expect {
|
||||
"\"non-existing-plugin\" download fail"
|
||||
}
|
||||
|
||||
expect {
|
||||
"Done, press ENTER to continue" {
|
||||
exit 0
|
||||
}
|
||||
}
|
||||
|
||||
exit 1
|
||||
|
Reference in New Issue
Block a user