From 80d3925cc15c6ededf75334755c104b1e7276931 Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Thu, 26 Aug 2010 21:11:33 +0000 Subject: [PATCH] * Updated for dash * There is no need to send a wrong password. The expect script is already changing the password to a wrong one * Updated ignore property --- tests/su/11_su_sulog_failure/su.test | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tests/su/11_su_sulog_failure/su.test b/tests/su/11_su_sulog_failure/su.test index e66da9c6..db105ab0 100755 --- a/tests/su/11_su_sulog_failure/su.test +++ b/tests/su/11_su_sulog_failure/su.test @@ -21,15 +21,14 @@ trap 'log_status "$0" "FAILURE"; restore_config' 0 change_config -./run_su.exp myuser myuserF00barbaz-wrong '$ ' +./run_su.exp myuser myuserF00barbaz '$ ' -#date +"SU %m/%d %H:%M + $(tty) root-testsuite" > tmp/sulog -#date +"SU %m/%d %H:%M + $(tty) testsuite-myuser" >> tmp/sulog echo -n "Check /var/log/sulog..." wc -l /var/log/sulog > tmp/sulog +d=$(date +"SU %m/%d %H:%M") cat /var/log/sulog | \ - egrep -v "$(date +"SU %m/%d %H:%M \+ /dev/pts/[0-9]* root-testsuite")" | \ - egrep -v "$(date +"SU %m/%d %H:%M - /dev/pts/[0-9]* testsuite-myuser")" \ + egrep -v "$d \+ /dev/pts/[0-9]* root-testsuite" | \ + egrep -v "$d - /dev/pts/[0-9]* testsuite-myuser" \ >> tmp/sulog || true diff -au tmp/sulog data/sulog echo "OK"