On my box, the output of hwclock is something like:
Tue 30 Mar 2010 09:38:44 AM CST  -0.354462 seconds
So the hwclock test always fails on my machine, this patch changes the
re string to solve this problem.

Signed-off-by: Jason Wang <[email protected]>
Cc: Martin J. Bligh <[email protected]>
---
 client/tests/hwclock/hwclock.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/client/tests/hwclock/hwclock.py b/client/tests/hwclock/hwclock.py
index 12f8c54..4c8e359 100644
--- a/client/tests/hwclock/hwclock.py
+++ b/client/tests/hwclock/hwclock.py
@@ -8,7 +8,7 @@ class hwclock(test.test):
     def run_once(self, seconds=1):
         utils.system('/sbin/hwclock --set --date "2/2/80 03:04:00"')
         date = utils.system_output('/sbin/hwclock')
-        if not re.match('Sat *Feb *2 *03:04:.. 1980', date):
+        if not re.match('Sat 02 Feb 1980 03:04:..', date):
             raise error.TestFail('Failed to set hwclock back to the eighties')
 
 
-- 
1.5.5.6

_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to