3 ms·
I've used expect to automate distro upgrades at some point, as we needed to upgrade a couple hundred machines. During testing I kept finding edge cases. Then I
by airesQ 10y ago
I've used expect to automate distro upgrades at some point, as we needed to upgrade a couple hundred machines.
During testing I kept finding edge cases. Then I eventually accounted for most of the edge cases, and gave a default answer for "unknown" edge cases. It sort of works, but I would like to have more confidence in the process.
Then again, I never felt that the problem was expect, expect does its job, and does its job reliably. The problem usually boils down to unexpected prompts (pun unintended).
I've also used pexect in Python for testing, no complains there. In fact at some point somebody tried to refactor this particular python program to use Paramiko, but decided to keep pexpect after running into some problems.