openbmc / openbmc-test-automation

Apache License 2.0
104 stars 92 forks source link

redfish.managers.test_multiple_interfaces has undefined variable OPENBMC_HOST_1 #2153

Closed generatz closed 2 years ago

generatz commented 2 years ago

The source code:

*** Settings ***
Documentation   Test BMC multiple network interface functionalities.

# User input BMC IP for the eth1.
# Use can input as  -v OPENBMC_HOST_1:xx.xxx.xx from command line.
Library         ../../lib/bmc_redfish.py  https://${OPENBMC_HOST_1}:${HTTPS_PORT}
...             ${OPENBMC_USERNAME}  ${OPENBMC_PASSWORD}  WITH NAME  Redfish1

The ensuing error:

[ ERROR ] Error in file '/home/ojenkins/workspace/icebridge_redfish_managers/redfish/managers/test_multiple_interfaces.robot' on line 6: Variable '${OPENBMC_HOST_1}' not found
gkeishin commented 2 years ago

@generatz This is to support dual interfaces where a BMC card like AST2600 has eth0 and eth1 which can be configured. Not a test case bug but it can be done better ahead.. For now if eth1 is not configured for your BMCs please skip them.. Thanks