Thanks Lucas, i read that before and tried it, but it gives some errors ...

my control file is

from autotest.client import utils

def step_init():
             job.next_step([step_test])

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

def step_test():
             job.run_test('sleeptest')


....

it does crash and reboot the host, but after that test get's failed with
some errros (i work in restricted env, so will not able to send errors
now), but is above definition is correct ?

Regards,
DJ


On Wed, Apr 30, 2014 at 12:30 AM, Lucas Meneghel Rodrigues
<[email protected]>wrote:

> 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