Home | History | Annotate | Download | only in error_skip_step
      1 AUTHOR = 'Gregory P. Smith <gps (a] google.com>'
      2 NAME = 'error test, make sure TestNAError skips steps in step enginer'
      3 TEST_TYPE = 'client'
      4 TEST_CLASS = 'General'
      5 TEST_CATEGORY = 'Functional'
      6 TIME = 'SHORT'
      7 DOC = """Raise TestNAError during step1.  step0, 2 and 3 should run."""
      8 
      9 
     10 def step_init():
     11     job.next_step(step_test)
     12 
     13 
     14 def step_test():
     15     job.next_step('step0')
     16     job.next_step('step1')
     17     job.next_step('step2')
     18 
     19 
     20 def step0():
     21     print 'step0 is the coolest!'
     22 
     23 
     24 def step1():
     25     raise error.TestNAError('This part can not run here.  meep meep.')
     26 
     27 
     28 def step2():
     29     print 'screw you step0, I am the coolest. -step2'
     30     job.next_step('step3')
     31 
     32 
     33 def step3():
     34     print 'at least I can run.  unlike step1.'
     35