blob: d4b4141507983d8b3692d6a01abfea5a798cbb18 [file] [log] [blame]
Michael Walsh6a9b8542017-05-23 17:57:20 -05001#!/usr/bin/env python
2
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():
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 Walsh6a9b8542017-05-23 17:57:20 -050023
Michael Walsh6a9b8542017-05-23 17:57:20 -050024def test_setup():
25
26 r"""
27 Do test case setup tasks.
28 """
29
30 gp.qprintn()
31 gp.qprint_executing()
32
33
Michael Walsh6a9b8542017-05-23 17:57:20 -050034def 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 Walsh6a9b8542017-05-23 17:57:20 -050045
Michael Walsh6a9b8542017-05-23 17:57:20 -050046def suite_teardown():
47
48 r"""
49 Clean up after this program.
50 """
51
52 gp.qprint_pgm_footer()