From: Cyril H. <su...@li...> - 2013-04-04 13:21:36
|
The branch, master, has been updated via 74500f984c2e2b926650367f6a55f3ee9b33c617 (commit) from 03680e04310ea3cea4cab18c62fdf86b30127c40 (commit) - Log ----------------------------------------------------------------- commit 74500f984c2e2b926650367f6a55f3ee9b33c617 Author: Wanlong Gao <gao...@cn...> Date: Wed Apr 3 11:02:59 2013 +0800 su01: fix the uncompleted string match We find that sometimes "spawn /bin/su -l $USER1 -c whoami" may return two lines: "Attempting to create directory /home/su_usr2/perl5" "su_usr2" So the uncompleted "su_usr2" string match the first line, but we expect to match the second line here. So, fix it to match "su_usr2\r" instead. Reported-by: DAN LI <li...@cn...> Signed-off-by: Wanlong Gao <gao...@cn...> ----------------------------------------------------------------------- Summary of changes: testcases/commands/su/su01_s1 | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/testcases/commands/su/su01_s1 b/testcases/commands/su/su01_s1 index 4439bde..b50ebdf 100755 --- a/testcases/commands/su/su01_s1 +++ b/testcases/commands/su/su01_s1 @@ -320,7 +320,7 @@ expect { "Password:" { send "$USER1_PASSWORD\r" expect { - "$USER1" { set i_am_correct 1 } + "$USER1\r" { set i_am_correct 1 } } } } hooks/post-receive -- ltp |