Depending on the system's load, there can be some variability in the

elapsed time.
This commit is contained in:
nekral-guest
2011-09-23 17:42:26 +00:00
parent fd69ebf5a9
commit 7d143a73d5
5 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -48,8 +48,8 @@ echo -n "Check the list of users with failures..."
cut -c-28 tmp/faillog.out > tmp/faillog.list
diff -au data/faillog.list tmp/faillog.list
echo "OK"
echo "There should be 6 or 7 secondes remaining for baz..."
grep "^baz .* \[[67]s left\]$" tmp/faillog.out
echo "There should between 6 and 8 secondes remaining for baz..."
grep "^baz .* \[[678]s left\]$" tmp/faillog.out
echo "OK"
echo "The lock is displayed as 10s for foo..."
grep "^foo .* \[10s lock\]$" tmp/faillog.out
@@ -48,8 +48,8 @@ echo -n "Check the list of users with failures..."
cut -c-28 tmp/faillog.out > tmp/faillog.list
diff -au data/faillog.list tmp/faillog.list
echo "OK"
echo "There should be 3 or 4 secondes remaining for bar..."
grep "^bar .* \[[34]s left\]$" tmp/faillog.out
echo "There should be between 3 and 5 secondes remaining for bar..."
grep "^bar .* \[[345]s left\]$" tmp/faillog.out
echo "OK"
echo "The lock is displayed as 10s for foo..."
grep "^foo .* \[10s lock\]$" tmp/faillog.out
@@ -58,8 +58,8 @@ echo -n "Check the list of users with failures..."
cut -c-28 tmp/faillog.out > tmp/faillog.list
diff -au data/faillog.list tmp/faillog.list
echo "OK"
echo "There should be 3 or 4 secondes remaining for bar..."
grep "^bar .* \[[34]s left\]$" tmp/faillog.out
echo "There should be between 2 and 4 secondes remaining for bar..."
grep "^bar .* \[[2-4]s left\]$" tmp/faillog.out
echo "OK"
echo "The lock is displayed as 10s for foo..."
grep "^foo .* \[10s lock\]$" tmp/faillog.out
@@ -58,8 +58,8 @@ echo -n "Check the list of users with failures..."
cut -c-28 tmp/faillog.out > tmp/faillog.list
diff -au data/faillog.list tmp/faillog.list
echo "OK"
echo "There should be 3 or 4 secondes remaining for bar..."
grep "^bar .* \[[34]s left\]$" tmp/faillog.out
echo "There should be between 2 and 4 secondes remaining for bar..."
grep "^bar .* \[[234]s left\]$" tmp/faillog.out
echo "OK"
echo "The lock is displayed as 10s for foo..."
grep "^foo .* \[10s lock\]$" tmp/faillog.out
@@ -61,8 +61,8 @@ echo "OK"
echo "There should be 6 or 7 secondes remaining for baz..."
grep "^baz .* \[[67]s left\]$" tmp/faillog.out
echo "OK"
echo "There should be 3 or 4 secondes remaining for bar..."
grep "^bar .* \[[34]s left\]$" tmp/faillog.out
echo "There should be between 2 and 4 secondes remaining for bar..."
grep "^bar .* \[[2-4]s left\]$" tmp/faillog.out
echo "OK."
rm -f tmp/faillog.out tmp/faillog.list