On Tue, Mar 30, 2010 at 5:28 AM, Lucas Meneghel Rodrigues
<[email protected]> wrote:
> 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?

Yeah, that's definitely different on my box. How about we go with:


if not re.match('Sat *Feb *2 *03:04:.. 1980', date) or re.match('Sat
02 Feb 1980 03:04:..', date):
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to