Created
August 5, 2020 16:02
-
-
Save Forty-Bot/aef220a769be4b7454d9e2a8207006b4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ PATH="../u-boot-build/u-boot-test/:$PATH" test/py/test.py --bd=sipeed_maix_bitm -ra --build-dir=. | |
+u-boot-test-flash sipeed_maix_bitm na | |
... u-boot-test-flash ... | |
=========================================================== test session starts ============================================================ | |
platform linux -- Python 3.8.5, pytest-5.2.1, py-1.8.0, pluggy-0.13.0 | |
rootdir: /home/sean/software/u-boot/test/py, inifile: pytest.ini | |
collected 322 items | |
test/py/tests/test_000_version.py E [ 0%] | |
test/py/tests/test_bind.py ss [ 0%] | |
test/py/tests/test_button.py s [ 0%] | |
test/py/tests/test_dfu.py s [ 0%] | |
test/py/tests/test_dm.py ... [ 0%] | |
test/py/tests/test_efi_fit.py s [ 0%] | |
test/py/tests/test_efi_loader.py .sssss [ 0%] | |
test/py/tests/test_efi_selftest.py sssss [ 0%] | |
test/py/tests/test_env.py ............sss [ 0%] | |
test/py/tests/test_fit.py s [ 0%] | |
test/py/tests/test_fpga.py ssssssssssssssssssssssssssss [ 0%] | |
test/py/tests/test_gpio.py ss [ 0%] | |
test/py/tests/test_gpt.py sssssss [ 0%] | |
test/py/tests/test_handoff.py s [ 0%] | |
test/py/tests/test_help.py . [ 0%] | |
test/py/tests/test_hush_if_test.py ......................................................................s [ 0%] | |
test/py/tests/test_log.py ss [ 0%] | |
test/py/tests/test_lsblk.py s [ 0%] | |
test/py/tests/test_md.py .. [ 0%] | |
test/py/tests/test_mmc_rd.py ssss [ 0%] | |
test/py/tests/test_mmc_wr.py s [ 0%] | |
test/py/tests/test_net.py .sssss [ 0%] | |
test/py/tests/test_ofplatdata.py ss [ 0%] | |
test/py/tests/test_part.py s [ 0%] | |
test/py/tests/test_pinmux.py sssssss [ 0%] | |
test/py/tests/test_sandbox_exit.py ss [ 0%] | |
test/py/tests/test_sf.py ssss [ 0%] | |
test/py/tests/test_shell_basics.py .... [ 0%] | |
test/py/tests/test_sleep.py . [ 0%] | |
test/py/tests/test_tpm2.py sssssssssss [ 0%] | |
test/py/tests/test_ums.py s [ 0%] | |
test/py/tests/test_unknown_cmd.py . [ 0%] | |
test/py/tests/test_ut.py ss [ 0%] | |
test/py/tests/test_vboot.py ssssssssss [ 0%] | |
test/py/tests/test_android/test_ab.py s [ 0%] | |
test/py/tests/test_android/test_abootimg.py s [ 0%] | |
test/py/tests/test_android/test_avb.py ssssss [ 0%] | |
test/py/tests/test_efi_secboot/test_authvar.py sssss [ 0%] | |
test/py/tests/test_efi_secboot/test_signed.py ssssss [ 0%] | |
test/py/tests/test_efi_secboot/test_unsigned.py sss [ 0%] | |
test/py/tests/test_fs/test_basic.py sssssssssssssssssssssssssssssssssssssss [ 0%] | |
test/py/tests/test_fs/test_ext.py ssssssssssssssssssssss [ 0%] | |
test/py/tests/test_fs/test_fs_cmd.py s [ 0%] | |
test/py/tests/test_fs/test_mkdir.py ssssssssssss [ 0%] | |
test/py/tests/test_fs/test_symlink.py ssss [ 0%] | |
test/py/tests/test_fs/test_unlink.py ssssssssssssss | |
================================================================== ERRORS ================================================================== | |
______________________________________________________ ERROR at setup of test_version ______________________________________________________ | |
request = <SubRequest 'u_boot_console' for <Function test_version>> | |
@pytest.fixture(scope='function') | |
def u_boot_console(request): | |
"""Generate the value of a test's u_boot_console fixture. | |
Args: | |
request: The pytest request. | |
Returns: | |
The fixture value. | |
""" | |
> console.ensure_spawned() | |
test/py/conftest.py:364: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
test/py/u_boot_console_base.py:362: in ensure_spawned | |
m = self.p.expect([pattern_u_boot_main_signon] + self.bad_patterns) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <u_boot_spawn.Spawn object at 0x7f49543fa9d0> | |
patterns = [re.compile('(U-Boot \\d{4}\\.\\d{2}[^\r\n]*\\))'), re.compile('(U-Boot SPL \\d{4}\\.\\d{2}[^\r\n]*\\))'), re.compile(...pile('Hit any key to stop autoboot: '), re.compile("Unknown command '.*' - try 'help'"), re.compile('## Error: '), ...] | |
def expect(self, patterns): | |
"""Wait for the sub-process to emit specific data. | |
This function waits for the process to emit one pattern from the | |
supplied list of patterns, or for a timeout to occur. | |
Args: | |
patterns: A list of strings or regex objects that we expect to | |
see in the sub-process' stdout. | |
Returns: | |
The index within the patterns array of the pattern the process | |
emitted. | |
Notable exceptions: | |
Timeout, if the process did not emit any of the patterns within | |
the expected time. | |
""" | |
for pi in range(len(patterns)): | |
if type(patterns[pi]) == type(''): | |
patterns[pi] = re.compile(patterns[pi]) | |
tstart_s = time.time() | |
try: | |
while True: | |
earliest_m = None | |
earliest_pi = None | |
for pi in range(len(patterns)): | |
pattern = patterns[pi] | |
m = pattern.search(self.buf) | |
if not m: | |
continue | |
if earliest_m and m.start() >= earliest_m.start(): | |
continue | |
earliest_m = m | |
earliest_pi = pi | |
if earliest_m: | |
pos = earliest_m.start() | |
posafter = earliest_m.end() | |
self.before = self.buf[:pos] | |
self.after = self.buf[pos:posafter] | |
self.output += self.buf[:posafter] | |
self.buf = self.buf[posafter:] | |
return earliest_pi | |
tnow_s = time.time() | |
if self.timeout: | |
tdelta_ms = (tnow_s - tstart_s) * 1000 | |
poll_maxwait = self.timeout - tdelta_ms | |
if tdelta_ms > self.timeout: | |
raise Timeout() | |
else: | |
poll_maxwait = None | |
events = self.poll.poll(poll_maxwait) | |
if not events: | |
> raise Timeout() | |
E u_boot_spawn.Timeout | |
test/py/u_boot_spawn.py:170: Timeout | |
---------------------------------------------------------- Captured stdout setup ----------------------------------------------------------- | |
+u-boot-test-reset sipeed_maix_bitm na | |
picocom v3.1 | |
port is : /dev/serial/by-id/usb-Kongou_Hikari_Sipeed-Debug_xel@sipeed-if00-port0 | |
flowcontrol : none | |
baudrate is : 115200 | |
parity is : none | |
databits are : 8 | |
stopbits are : 1 | |
escape is : C-a | |
local echo is : no | |
noinit is : no | |
noreset is : no | |
hangup is : no | |
nolock is : no | |
send_cmd is : sz -vv | |
receive_cmd is : rz -vv -E | |
imap is : | |
omap is : | |
emap is : crcrlf,delbs, | |
logfile is : none | |
initstring : none | |
exit_after is : not set | |
exit is : no | |
Type [C-a] [C-h] to see available commands | |
Terminal ready | |
In: serial@38000000 | |
Out: serial@38000000 | |
Err: serial@38000000 | |
=> | |
========================================================= short test summary info ========================================================== | |
SKIPPED [2] /home/sean/software/u-boot/test/py/conftest.py:487: .config feature "cmd_bind" not enabled | |
SKIPPED [139] /home/sean/software/u-boot/test/py/conftest.py:468: board "sipeed_maix_bitm" not supported | |
SKIPPED [1] tests/test_dfu.py:114: got empty parameter set ['env__usb_dev_port'], function test_dfu at /home/sean/software/u-boot/test/py/tests/test_dfu.py:113 | |
SKIPPED [6] /home/sean/software/u-boot/test/py/conftest.py:487: .config feature "fit" not enabled | |
SKIPPED [2] /home/sean/software/u-boot/test/py/conftest.py:487: .config feature "cmd_dhcp" not enabled | |
SKIPPED [4] /home/sean/software/u-boot/test/py/conftest.py:487: .config feature "net" not enabled | |
SKIPPED [1] /home/sean/software/u-boot/test/py/conftest.py:487: .config feature "cmd_bootefi_hello_compile" not enabled | |
SKIPPED [1] /home/sean/software/u-boot/test/py/conftest.py:487: .config feature "cmd_bootefi_hello" not enabled | |
SKIPPED [1] /home/sean/software/u-boot/test/py/conftest.py:487: .config feature "cmd_bootefi" not enabled | |
SKIPPED [5] /home/sean/software/u-boot/test/py/conftest.py:487: .config feature "cmd_bootefi_selftest" not enabled | |
SKIPPED [1] /home/sean/software/u-boot/test/py/conftest.py:487: .config feature "cmd_nvedit_info" not enabled | |
SKIPPED [13] /home/sean/software/u-boot/test/py/conftest.py:487: .config feature "cmd_fpga" not enabled | |
SKIPPED [1] /home/sean/software/u-boot/test/py/conftest.py:487: .config feature "cmd_fpga_loadp" not enabled | |
SKIPPED [1] /home/sean/software/u-boot/test/py/conftest.py:487: .config feature "cmd_fpga_loadbp" not enabled | |
SKIPPED [6] /home/sean/software/u-boot/test/py/conftest.py:487: .config feature "image_format_legacy" not enabled | |
SKIPPED [2] /home/sean/software/u-boot/test/py/conftest.py:487: .config feature "cmd_log" not enabled | |
SKIPPED [1] /home/sean/software/u-boot/test/py/conftest.py:487: .config feature "cmd_lsblk" not enabled | |
SKIPPED [1] tests/test_mmc_rd.py:134: got empty parameter set ['env__mmc_dev_config'], function test_mmc_dev at /home/sean/software/u-boot/test/py/tests/test_mmc_rd.py:133 | |
SKIPPED [1] tests/test_mmc_rd.py:155: got empty parameter set ['env__mmc_dev_config'], function test_mmc_rescan at /home/sean/software/u-boot/test/py/tests/test_mmc_rd.py:154 | |
SKIPPED [1] tests/test_mmc_rd.py:181: got empty parameter set ['env__mmc_dev_config'], function test_mmc_info at /home/sean/software/u-boot/test/py/tests/test_mmc_rd.py:180 | |
SKIPPED [1] tests/test_mmc_rd.py:218: got empty parameter set ['env__mmc_rd_config'], function test_mmc_rd at /home/sean/software/u-boot/test/py/tests/test_mmc_rd.py:217 | |
SKIPPED [1] tests/test_mmc_wr.py:38: got empty parameter set ['env__mmc_wr_config'], function test_mmc_wr at /home/sean/software/u-boot/test/py/tests/test_mmc_wr.py:37 | |
SKIPPED [1] /home/sean/software/u-boot/test/py/conftest.py:487: .config feature "cmd_ping" not enabled | |
SKIPPED [1] /home/sean/software/u-boot/test/py/conftest.py:487: .config feature "cmd_net" not enabled | |
SKIPPED [1] /home/sean/software/u-boot/test/py/conftest.py:487: .config feature "cmd_nfs" not enabled | |
SKIPPED [2] /home/sean/software/u-boot/test/py/conftest.py:487: .config feature "spl_of_platdata" not enabled | |
SKIPPED [1] /home/sean/software/u-boot/test/py/conftest.py:487: .config feature "efi_partition" not enabled | |
SKIPPED [3] /home/sean/software/u-boot/test/py/conftest.py:487: .config feature "cmd_pinmux" not enabled | |
SKIPPED [1] tests/test_sf.py:167: got empty parameter set ['env__sf_config'], function test_sf_read at /home/sean/software/u-boot/test/py/tests/test_sf.py:166 | |
SKIPPED [1] tests/test_sf.py:174: got empty parameter set ['env__sf_config'], function test_sf_read_twice at /home/sean/software/u-boot/test/py/tests/test_sf.py:173 | |
SKIPPED [1] tests/test_sf.py:186: got empty parameter set ['env__sf_config'], function test_sf_erase at /home/sean/software/u-boot/test/py/tests/test_sf.py:185 | |
SKIPPED [1] tests/test_sf.py:209: got empty parameter set ['env__sf_config'], function test_sf_update at /home/sean/software/u-boot/test/py/tests/test_sf.py:208 | |
SKIPPED [11] /home/sean/software/u-boot/test/py/conftest.py:487: .config feature "cmd_tpm_v2" not enabled | |
SKIPPED [1] tests/test_ums.py:76: got empty parameter set ['env__usb_dev_port'], function test_ums at /home/sean/software/u-boot/test/py/tests/test_ums.py:75 | |
SKIPPED [1] /home/sean/software/u-boot/test/py/conftest.py:487: .config feature "ut_dm" not enabled | |
SKIPPED [1] tests/test_ut.py: got empty parameter set ['ut_subtest'], function test_ut at /home/sean/software/u-boot/test/py/tests/test_ut.py:23 | |
SKIPPED [3] /home/sean/software/u-boot/test/py/conftest.py:487: .config feature "cmd_mmc" not enabled | |
SKIPPED [2] /home/sean/software/u-boot/test/py/conftest.py:487: .config feature "cmd_avb" not enabled | |
SKIPPED [1] /home/sean/software/u-boot/test/py/conftest.py:487: .config feature "optee_ta_avb" not enabled | |
ERROR test/py/tests/test_000_version.py::test_version - u_boot_spawn.Timeout | |
================================================ 96 passed, 225 skipped, 1 error in 39.94s ================================================= |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment