Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame^] | 1 | python test1_eventhandler() { |
| 2 | bb.note("Test for bb.event.BuildStarted") |
| 3 | } |
| 4 | python test2_eventhandler() { |
| 5 | bb.note("Test for bb.event.BuildCompleted") |
| 6 | } |
| 7 | python test3_eventhandler() { |
| 8 | bb.note("Test for bb.event.InvalidEvent") |
| 9 | } |
| 10 | |
| 11 | addhandler test1_eventhandler |
| 12 | test1_eventhandler[eventmask] = "bb.event.BuildStarted" |
| 13 | addhandler test2_eventhandler |
| 14 | test2_eventhandler[eventmask] = "bb.event.BuildCompleted" |
| 15 | addhandler test3_eventhandler |
| 16 | test3_eventhandler[eventmask] = "bb.event.InvalidEvent" |