On Tue, Feb 2, 2010 at 9:31 AM, Martin Bligh <[email protected]> wrote:
> + if utils.system('echo %s > /sys/power/state' % state) != 0:
> + raise error.TestError('Unable to set power state to ' + state)
>
> That looks odd. If you're looking for a non-zero exit code, it'll throw
> an exception from utils.system?
>
So do a bunch of other utilities in base_utils.py -- e.g. get_cpu_family,
get_cpu_vendor, ping_default_gateway... We can certainly do something
different for these routines, of course.
Darin
> On Tue, Feb 2, 2010 at 9:12 AM, Darin Petkov <[email protected]> wrote:
> > This patch adds routines for reading the hardware real-time clock,
> setting
> > the
> > RTC-based wake alarm and managing the system power state (standby,
> > suspend-to-ram, suspend-to-disk).
> >
>
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest