On Tue, Mar 30, 2010 at 9:02 AM, Jason Wang <[email protected]> wrote: > On my box, the output of hwclock is something like: > Tue 30 Mar 2010 09:38:44 AM CST -0.354462 seconds
I just booted an Ubuntu Lucid Lynx VM and got the same output format for hwclock. However, I am under the impression that older distros might behave differently. Maybe we should provide the user a parameter where the regexp can be specified, while keeping a sane default? > 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 > -- Lucas _______________________________________________ Autotest mailing list [email protected] http://test.kernel.org/cgi-bin/mailman/listinfo/autotest
