blob: 91e104ed51f0f7fd0af60c97072c485c46266512 [file] [log] [blame]
George Keishinge7e91712021-09-03 11:28:44 -05001#!/usr/bin/env python3
Michael Walsh6a9b8542017-05-23 17:57:20 -05002
3r"""
4This module is the python counterpart to pgm_template.py.
5"""
6
7import gen_print as gp
8import gen_robot_valid as grv
9
10
Michael Walsh6a9b8542017-05-23 17:57:20 -050011def suite_setup():
Michael Walsh6a9b8542017-05-23 17:57:20 -050012 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 Walsh6a9b8542017-05-23 17:57:20 -050022
Michael Walsh6a9b8542017-05-23 17:57:20 -050023def test_setup():
Michael Walsh6a9b8542017-05-23 17:57:20 -050024 r"""
25 Do test case setup tasks.
26 """
27
28 gp.qprintn()
29 gp.qprint_executing()
30
31
Michael Walsh6a9b8542017-05-23 17:57:20 -050032def validate_suite_parms():
Michael Walsh6a9b8542017-05-23 17:57:20 -050033 r"""
34 Validate suite parameters.
35 """
36
37 # Programmer must add these.
Michael Walshe7edb222019-08-19 17:39:38 -050038 grv.valid_value("OPENBMC_HOST")
Michael Walsh6a9b8542017-05-23 17:57:20 -050039
40 return
41
Michael Walsh6a9b8542017-05-23 17:57:20 -050042
Michael Walsh6a9b8542017-05-23 17:57:20 -050043def suite_teardown():
Michael Walsh6a9b8542017-05-23 17:57:20 -050044 r"""
45 Clean up after this program.
46 """
47
48 gp.qprint_pgm_footer()