[Pkg-shadow-commits] r3513 - debian/trunk/tests/su/11_su_sulog_failure
Nicolas FRANÇOIS
nekral-guest at alioth.debian.org
Sun Oct 16 14:34:17 UTC 2011
Author: nekral-guest
Date: 2011-10-16 14:34:17 +0000 (Sun, 16 Oct 2011)
New Revision: 3513
Modified:
debian/trunk/tests/su/11_su_sulog_failure/su.test
Log:
* The logs may be dated from the previous minute.
* Reverse the diff.
Modified: debian/trunk/tests/su/11_su_sulog_failure/su.test
===================================================================
--- debian/trunk/tests/su/11_su_sulog_failure/su.test 2011-10-16 14:32:34 UTC (rev 3512)
+++ debian/trunk/tests/su/11_su_sulog_failure/su.test 2011-10-16 14:34:17 UTC (rev 3513)
@@ -25,12 +25,15 @@
echo -n "Check /var/log/sulog..."
wc -l /var/log/sulog > tmp/sulog
-d=$(date +"SU %m/%d %H:%M")
+d1=$(date +"SU %m/%d %H:%M")
+d2=$(date -d"1 minute ago" +"SU %m/%d %H:%M")
cat /var/log/sulog | \
- egrep -v "$d \+ /dev/pts/[0-9]* root-testsuite" | \
- egrep -v "$d - /dev/pts/[0-9]* testsuite-myuser" \
+ egrep -v "$d1 \+ /dev/pts/[0-9]* root-testsuite" | \
+ egrep -v "$d2 \+ /dev/pts/[0-9]* root-testsuite" | \
+ egrep -v "$d1 - /dev/pts/[0-9]* testsuite-myuser" | \
+ egrep -v "$d2 - /dev/pts/[0-9]* testsuite-myuser" \
>> tmp/sulog || true
-diff -au tmp/sulog data/sulog
+diff -au data/sulog tmp/sulog
echo "OK"
rm -f tmp/sulog
More information about the Pkg-shadow-commits
mailing list