From 7d143a73d5d24a9f47a6e594462013aa4a43ffa9 Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Fri, 23 Sep 2011 17:42:26 +0000 Subject: [PATCH] Depending on the system's load, there can be some variability in the elapsed time. --- tests/log/faillog/32_faillog-l/faillog.test | 4 ++-- tests/log/faillog/34_faillog-l-u_range/faillog.test | 4 ++-- tests/log/faillog/38_faillog-l-a-u_range/faillog.test | 4 ++-- tests/log/faillog/39_faillog-l-a-u_open_range/faillog.test | 4 ++-- tests/log/faillog/40_faillog-l-a-u_range_open/faillog.test | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/log/faillog/32_faillog-l/faillog.test b/tests/log/faillog/32_faillog-l/faillog.test index 26d8b3e5..1e6360e1 100755 --- a/tests/log/faillog/32_faillog-l/faillog.test +++ b/tests/log/faillog/32_faillog-l/faillog.test @@ -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 diff --git a/tests/log/faillog/34_faillog-l-u_range/faillog.test b/tests/log/faillog/34_faillog-l-u_range/faillog.test index 20da4093..980b95ee 100755 --- a/tests/log/faillog/34_faillog-l-u_range/faillog.test +++ b/tests/log/faillog/34_faillog-l-u_range/faillog.test @@ -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 diff --git a/tests/log/faillog/38_faillog-l-a-u_range/faillog.test b/tests/log/faillog/38_faillog-l-a-u_range/faillog.test index a25384bb..a585e17e 100755 --- a/tests/log/faillog/38_faillog-l-a-u_range/faillog.test +++ b/tests/log/faillog/38_faillog-l-a-u_range/faillog.test @@ -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 diff --git a/tests/log/faillog/39_faillog-l-a-u_open_range/faillog.test b/tests/log/faillog/39_faillog-l-a-u_open_range/faillog.test index cbec9c7a..b81b396d 100755 --- a/tests/log/faillog/39_faillog-l-a-u_open_range/faillog.test +++ b/tests/log/faillog/39_faillog-l-a-u_open_range/faillog.test @@ -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 diff --git a/tests/log/faillog/40_faillog-l-a-u_range_open/faillog.test b/tests/log/faillog/40_faillog-l-a-u_range_open/faillog.test index 1c5fe418..92180edb 100755 --- a/tests/log/faillog/40_faillog-l-a-u_range_open/faillog.test +++ b/tests/log/faillog/40_faillog-l-a-u_range_open/faillog.test @@ -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