This change allows steps (think 'step engine') to be composed with a
tiny bit of magic added. This allows tests that reboot the system
to be composed via the autotest web frontend.
Here's an example of a job with composed steps:
def step_init():
job.next_step(step1)
job.next_step(step2)
def step1():
def step_init():
job.next_step(step1)
# do something that reboots the system
def step1():
# do something that runs after a reboot
return locals() # the only 'magic' required to make it all work
def step2():
job.run_test("sleeptest")
Signed-off-by: Jeremy Orlow <jorlow@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@1582 592f7852-d20e-0410-864c-8624ca9c26a4
1 file changed