+    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?

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

Reply via email to