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(): |
Michael Walsh | 6a9b854 | 2017-05-23 17:57:20 -0500 | [diff] [blame] | 12 | r""" |
13 | Do test suite setup tasks. | ||||
14 | """ | ||||
15 | |||||
16 | gp.qprintn() | ||||
17 | |||||
18 | validate_suite_parms() | ||||
19 | |||||
20 | gp.qprint_pgm_header() | ||||
21 | |||||
Michael Walsh | 6a9b854 | 2017-05-23 17:57:20 -0500 | [diff] [blame] | 22 | |
Michael Walsh | 6a9b854 | 2017-05-23 17:57:20 -0500 | [diff] [blame] | 23 | def test_setup(): |
Michael Walsh | 6a9b854 | 2017-05-23 17:57:20 -0500 | [diff] [blame] | 24 | r""" |
25 | Do test case setup tasks. | ||||
26 | """ | ||||
27 | |||||
28 | gp.qprintn() | ||||
29 | gp.qprint_executing() | ||||
30 | |||||
31 | |||||
Michael Walsh | 6a9b854 | 2017-05-23 17:57:20 -0500 | [diff] [blame] | 32 | def validate_suite_parms(): |
Michael Walsh | 6a9b854 | 2017-05-23 17:57:20 -0500 | [diff] [blame] | 33 | r""" |
34 | Validate suite parameters. | ||||
35 | """ | ||||
36 | |||||
37 | # Programmer must add these. | ||||
Michael Walsh | e7edb22 | 2019-08-19 17:39:38 -0500 | [diff] [blame] | 38 | grv.valid_value("OPENBMC_HOST") |
Michael Walsh | 6a9b854 | 2017-05-23 17:57:20 -0500 | [diff] [blame] | 39 | |
40 | return | ||||
41 | |||||
Michael Walsh | 6a9b854 | 2017-05-23 17:57:20 -0500 | [diff] [blame] | 42 | |
Michael Walsh | 6a9b854 | 2017-05-23 17:57:20 -0500 | [diff] [blame] | 43 | def suite_teardown(): |
Michael Walsh | 6a9b854 | 2017-05-23 17:57:20 -0500 | [diff] [blame] | 44 | r""" |
45 | Clean up after this program. | ||||
46 | """ | ||||
47 | |||||
48 | gp.qprint_pgm_footer() |