(values)
| 36 | |
| 37 | |
| 38 | def function_events_callback(values): |
| 39 | try: |
| 40 | previous_echoed = (values["child_result_list"][-1] |
| 41 | .decode().split("\n")[-2].strip()) |
| 42 | if previous_echoed.endswith("stage-1"): |
| 43 | return "echo stage-2\n" |
| 44 | elif previous_echoed.endswith("stage-2"): |
| 45 | return "echo stage-3\n" |
| 46 | elif previous_echoed.endswith("stage-3"): |
| 47 | return "exit\n" |
| 48 | else: |
| 49 | raise Exception("Unexpected output {0}".format(previous_echoed)) |
| 50 | except IndexError: |
| 51 | return "echo stage-1\n" |
| 52 | |
| 53 | |
| 54 | class RunFuncTestCase(PexpectTestCase.PexpectTestCase): |
nothing calls this directly
no test coverage detected
searching dependent graphs…