Open nba2023 opened 1 month ago
@nba2023
Error in file '/openbmc/extended/obmc_boot_test_resource.robot' on line 9: Importing library '/openbmc/lib/obmc_boot_test.py' failed: #(UTC) 2024/05/21 05:24:58.969319 - 1.604266 - **ERROR** Failed to find complete path for file "/openbmc/data/boot_lists/PDU_reboot".
3. Run the test from the top of the directory after cloning
git clone https://github.com/openbmc/openbmc-test-automation cd openbmc-test-automation/
robot -v xxxxxx run from this directory
@nba2023
1. First is to move the Python up to 3.10 or 3.11 2. Next please check the file if it's missing
Error in file '/openbmc/extended/obmc_boot_test_resource.robot' on line 9: Importing library '/openbmc/lib/obmc_boot_test.py' failed: #(UTC) 2024/05/21 05:24:58.969319 - 1.604266 - **ERROR** Failed to find complete path for file "/openbmc/data/boot_lists/PDU_reboot".
3. Run the test from the top of the directory after cloning
git clone https://github.com/openbmc/openbmc-test-automation cd openbmc-test-automation/ robot -v xxxxxx run from this directory
Hi, The case can run after upgrade python to 3.11.9 without the end error I mentioned on previous comment. But still got same error as follows:
[ ERROR ] Error in file '/openbmc/extended/obmc_boot_test_resource.robot' on line 9: Importing library '/openbmc/lib/obmc_boot_test.py' failed: #(UTC) 2024/06/05 07:03:57.564355 - 0.191447 - **ERROR** Failed to find complete path for file "/openbmc/data/boot_lists/PDU_reboot".
shell_rc: 0x0000000000000001
Traceback (most recent call last):
File "/openbmc/lib/obmc_boot_test.py", line 56, in <module>
boot_lists = read_boot_lists()
^^^^^^^^^^^^^^^^^
File "/openbmc/lib/boot_data.py", line 145, in read_boot_lists
file_path = gm.which(dir_path + boot_category)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/openbmc/lib/gen_misc.py", line 128, in which
BuiltIn().fail(gp.sprint_error(error_message))
File "/usr/local/lib/python3.11/site-packages/robot/libraries/BuiltIn.py", line 529, in fail
raise AssertionError(msg) if msg is not None else AssertionError()
PYTHONPATH:
/openbmc/lib
/usr/local/bin
/usr/local/lib/python311.zip
/usr/local/lib/python3.11
/usr/local/lib/python3.11/lib-dynload
/usr/local/lib/python3.11/site-packages
/openbmc/data/
/openbmc/data/
/openbmc/data/
/openbmc/extended/
/openbmc/data/
/openbmc/extended/
Openbmc.Ipmi.Test Ipmi Chassis :: Module to test IPMI chassis functionality.
I enter to docker container and check the missing file under /openbmc root@vm:/home/user# docker exec -it 008 bash
root@vm:/openbmc# cat /openbmc/data/boot_lists/PDU_reboot
APOR
APOR (mfg)
PDU AC Cycle (run)
PDU AC Cycle (run) (mfg)
PDU AC Cycle (off)
PDU AC Cycle (off) (mfg)
Run the case
IPMI Chassis Status On
, and get error as follows: The first error:The end error:
Anyone can help me to fix it? Thanks.