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