Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wedge400: cit: implement bsm eeprom, rackmon eeprom test (#1361)
Summary: - Implement BSMEepromTest for -- W400 Respin or later -- W400C DVT or later - Implement RACKMONEepromTest for -- W400 Respin or later -- W400C Respin or later #### TestPlan: Run on Wedge400C Respin ``` root@bmc-oob:/usr/local/bin/tests2# python cit_runner.py -p wedge400c --run-test tests.wedge400.test_eeprom.BSMEepromTest test_asset_tag (tests.wedge400.test_eeprom.BSMEepromTest) ... ok test_extended_mac_base (tests.wedge400.test_eeprom.BSMEepromTest) ... ok test_local_mac (tests.wedge400.test_eeprom.BSMEepromTest) ... ok test_location_on_fabric (tests.wedge400.test_eeprom.BSMEepromTest) ... ok test_odm_pcb (tests.wedge400.test_eeprom.BSMEepromTest) ... ok test_product_name (tests.wedge400.test_eeprom.BSMEepromTest) Tests if the platform defined product name is present ... ok test_product_part_number (tests.wedge400.test_eeprom.BSMEepromTest) ... ok test_product_serial_number (tests.wedge400.test_eeprom.BSMEepromTest) ... ok test_system_manufacturer (tests.wedge400.test_eeprom.BSMEepromTest) ... ok test_version (tests.wedge400.test_eeprom.BSMEepromTest) ... ok ---------------------------------------------------------------------- Ran 10 tests in 21.655s OK root@bmc-oob:/usr/local/bin/tests2# python cit_runner.py -p wedge400c --run-test tests.wedge400.test_eeprom.RACKMONEepromTest test_asset_tag (tests.wedge400.test_eeprom.RACKMONEepromTest) ... ok test_extended_mac_base (tests.wedge400.test_eeprom.RACKMONEepromTest) ... ok test_local_mac (tests.wedge400.test_eeprom.RACKMONEepromTest) ... ok test_location_on_fabric (tests.wedge400.test_eeprom.RACKMONEepromTest) ... ok test_odm_pcb (tests.wedge400.test_eeprom.RACKMONEepromTest) ... ok test_product_name (tests.wedge400.test_eeprom.RACKMONEepromTest) Tests if the platform defined product name is present ... ok test_product_part_number (tests.wedge400.test_eeprom.RACKMONEepromTest) ... ok test_product_serial_number (tests.wedge400.test_eeprom.RACKMONEepromTest) ... ok test_system_manufacturer (tests.wedge400.test_eeprom.RACKMONEepromTest) ... ok test_version (tests.wedge400.test_eeprom.RACKMONEepromTest) ... ok ---------------------------------------------------------------------- Ran 10 tests in 20.209s OK root@bmc-oob:/usr/local/bin/tests2# ``` Run on another machine version not support eeprom, should be skip test Run on Wedge400C DVT ``` root@bmc-oob:/usr/local/bin/tests2# python cit_runner.py -p wedge400c --run-test tests.wedge400.test_eeprom.RACKMONEepromTest test_asset_tag (tests.wedge400.test_eeprom.RACKMONEepromTest) ... skipped 'Skipping because Rackmon EEPROM not available on Wedge400C-DVT ' test_extended_mac_base (tests.wedge400.test_eeprom.RACKMONEepromTest) ... skipped 'Skipping because Rackmon EEPROM not available on Wedge400C-DVT ' test_local_mac (tests.wedge400.test_eeprom.RACKMONEepromTest) ... skipped 'Skipping because Rackmon EEPROM not available on Wedge400C-DVT ' test_location_on_fabric (tests.wedge400.test_eeprom.RACKMONEepromTest) ... skipped 'Skipping because Rackmon EEPROM not available on Wedge400C-DVT ' test_odm_pcb (tests.wedge400.test_eeprom.RACKMONEepromTest) ... skipped 'Skipping because Rackmon EEPROM not available on Wedge400C-DVT ' test_product_name (tests.wedge400.test_eeprom.RACKMONEepromTest) Tests if the platform defined product name is present ... skipped 'Skipping because Rackmon EEPROM not available on Wedge400C-DVT ' test_product_part_number (tests.wedge400.test_eeprom.RACKMONEepromTest) ... skipped 'Skipping because Rackmon EEPROM not available on Wedge400C-DVT ' test_product_serial_number (tests.wedge400.test_eeprom.RACKMONEepromTest) ... skipped 'Skipping because Rackmon EEPROM not available on Wedge400C-DVT ' test_system_manufacturer (tests.wedge400.test_eeprom.RACKMONEepromTest) ... skipped 'Skipping because Rackmon EEPROM not available on Wedge400C-DVT ' test_version (tests.wedge400.test_eeprom.RACKMONEepromTest) ... skipped 'Skipping because Rackmon EEPROM not available on Wedge400C-DVT ' ---------------------------------------------------------------------- Ran 10 tests in 0.200s OK (skipped=10) root@bmc-oob:/usr/local/bin/tests2# ``` X-link: facebookexternal/openbmc.celestica#1361 Reviewed By: joancaneus fbshipit-source-id: a234b0e3dd1ed92ad07090510ed96c702e1fc4b5
- Loading branch information