1#!/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 11############################################################################### 12def suite_setup(): 13 14 r""" 15 Do test suite setup tasks. 16 """ 17 18 gp.qprintn() 19 20 validate_suite_parms() 21 22 gp.qprint_pgm_header() 23 24############################################################################### 25 26 27############################################################################### 28def test_setup(): 29 30 r""" 31 Do test case setup tasks. 32 """ 33 34 gp.qprintn() 35 gp.qprint_executing() 36 37 38############################################################################### 39 40 41############################################################################### 42def validate_suite_parms(): 43 44 r""" 45 Validate suite parameters. 46 """ 47 48 # Programmer must add these. 49 grv.rvalid_value("OPENBMC_HOST") 50 51 return 52 53############################################################################### 54 55 56############################################################################### 57def suite_teardown(): 58 59 r""" 60 Clean up after this program. 61 """ 62 63 gp.qprint_pgm_footer() 64 65############################################################################### 66