Michael Walsh | 6a9b854 | 2017-05-23 17:57:20 -0500 | [diff] [blame] | 1 | #!/usr/bin/env python |
| 2 | |
| 3 | r""" |
| 4 | This module is the python counterpart to pgm_template.py. |
| 5 | """ |
| 6 | |
| 7 | import gen_print as gp |
| 8 | import gen_robot_valid as grv |
| 9 | |
| 10 | |
Michael Walsh | 6a9b854 | 2017-05-23 17:57:20 -0500 | [diff] [blame] | 11 | def suite_setup(): |
| 12 | |
| 13 | r""" |
| 14 | Do test suite setup tasks. |
| 15 | """ |
| 16 | |
| 17 | gp.qprintn() |
| 18 | |
| 19 | validate_suite_parms() |
| 20 | |
| 21 | gp.qprint_pgm_header() |
| 22 | |
Michael Walsh | 6a9b854 | 2017-05-23 17:57:20 -0500 | [diff] [blame] | 23 | |
Michael Walsh | 6a9b854 | 2017-05-23 17:57:20 -0500 | [diff] [blame] | 24 | def test_setup(): |
| 25 | |
| 26 | r""" |
| 27 | Do test case setup tasks. |
| 28 | """ |
| 29 | |
| 30 | gp.qprintn() |
| 31 | gp.qprint_executing() |
| 32 | |
| 33 | |
Michael Walsh | 6a9b854 | 2017-05-23 17:57:20 -0500 | [diff] [blame] | 34 | def validate_suite_parms(): |
| 35 | |
| 36 | r""" |
| 37 | Validate suite parameters. |
| 38 | """ |
| 39 | |
| 40 | # Programmer must add these. |
| 41 | grv.rvalid_value("OPENBMC_HOST") |
| 42 | |
| 43 | return |
| 44 | |
Michael Walsh | 6a9b854 | 2017-05-23 17:57:20 -0500 | [diff] [blame] | 45 | |
Michael Walsh | 6a9b854 | 2017-05-23 17:57:20 -0500 | [diff] [blame] | 46 | def suite_teardown(): |
| 47 | |
| 48 | r""" |
| 49 | Clean up after this program. |
| 50 | """ |
| 51 | |
| 52 | gp.qprint_pgm_footer() |