From d4b8d99b605c4a8513923fdf96414aca689879e1 Mon Sep 17 00:00:00 2001 From: Christoph Galuschka Date: Dec 26 2019 07:20:22 +0000 Subject: Merge pull request #51 from bstinsonmhk/fix-more-passwd merged - thanks for the fix --- diff --git a/tests/p_passwd/_user_password.expect b/tests/p_passwd/_user_password.expect index 4629858..e0dac1e 100755 --- a/tests/p_passwd/_user_password.expect +++ b/tests/p_passwd/_user_password.expect @@ -6,19 +6,29 @@ match_max 6000 spawn su passtest -c passwd expect -re "(UNIX|Current) password:" { send -- "passtest\r" } expect { - "You must wait longer to change your password" - { - exit 2 - } - "Authentication token manipulation error" - { - exit 3 - } - "password:" - { - send -- "ano24ther\r" - expect "*?password:*" - send -- "ano24ther\r" - expect eof - } - } + "You must wait longer to change your password" + { + exit 2 + } + "Authentication token manipulation error" + { + exit 3 + } + "Current Password:" { + send -- "passtest\r" + expect { + "Authentication token manipulation error" + { + exit 3 + } + } + } + "password:" + { + send -- "ano24ther\r" + expect "*?\[pP]assword:*" + send -- "ano24ther\r" + expect eof + } +} +