On 04/29/2014 12:54 PM, Unix SA wrote:
Hello,

I am planning to write test for testing kernel crash dump (kdump), i
have question, how i can pass sysrq key sequence ?

There's currently no specific API that wraps the trigger kernel crash procedure. It should be enough to call

from autotest.client import utils

utils.run("echo c > /proc/sysrq-trigger", ignore_status=True)

or similar, such as

utils.system("echo c > /proc/sysrq-trigger", ignore_status=True)

and after passing it
if server panics and reboot how can i resume my test after server reboots ?

You need to use the control file engine, see:

https://github.com/autotest/autotest/wiki/ControlHowto#rebooting-during-a-job

please suggest.

Regards,
Dj


_______________________________________________
Autotest-kernel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/autotest-kernel


_______________________________________________
Autotest-kernel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/autotest-kernel

Reply via email to