[PATCH v3 12/70] dm: part: Update test to use mmc2

Tom Rini trini at konsulko.com
Tue Jan 24 16:49:01 CET 2023


On Tue, Jan 24, 2023 at 03:56:00AM -0700, Simon Glass wrote:
> Hi Tom,
> 
> On Mon, 23 Jan 2023 at 18:39, Tom Rini <trini at konsulko.com> wrote:
> >
> > On Tue, Jan 17, 2023 at 10:47:22AM -0700, Simon Glass wrote:
> >
> > > At present this test sets up a partition table on mmc1. But this is used
> > > by the bootstd tests, so it is not possible to run those after this test
> > > has run, without restarting the Python test harness.
> > >
> > > This is inconvenient when running tests repeatedly with 'ut dm'. Move the
> > > test to use mmc2, which is not used by anything.
> > >
> > > Signed-off-by: Simon Glass <sjg at chromium.org>
> >
> > When I run tests like this:
> > TEST="not sleep and not event_dump and not bootmgr and not extension"
> > ./tools/buildman/buildman -o /tmp/sandbox -P --board sandbox
> > ./test/py/test.py --bd $ARGS --build-dir /tmp/sandbox -k "$TEST" -ra
> > I get:
> > ========================================== FAILURES ===========================================
> > _________________________________ test_ut[ut_dm_dm_test_part] _________________________________
> > test/py/tests/test_ut.py:341: in test_ut
> >     assert output.endswith('Failures: 0')
> > E   assert False
> > E    +  where False = <built-in method endswith of str object at 0x2776470>('Failures: 0')
> > E    +    where <built-in method endswith of str object at 0x2776470> = 'Test: dm_test_part: part.c\r\r\n** No device specified **\r\r\nCouldn\'t find partition mmc <NULL>\r\r\n** No device ...: 0 == do_test(uts, 2, "1:2", 0): Expected 0x0 (0), got 0x1 (1)\r\r\nTest dm_test_part failed 4 times\r\r\nFailures: 4'.endswith
> > ------------------------------------ Captured stdout call -------------------------------------
> > => ut dm dm_test_part
> > Test: dm_test_part: part.c
> > ** No device specified **
> > Couldn't find partition mmc <NULL>
> > ** No device specified **
> > Couldn't find partition mmc
> > ** No partition table - mmc 0 **
> > Couldn't find partition mmc 0
> > Could not find "test1" partition
> > ** Bad device specification mmc #test1 **
> > ** Bad device specification mmc #test1 **
> > Couldn't find partition mmc #test1
> > ** Bad partition specification mmc 1:0 **
> > Couldn't find partition mmc 1:0
> > ** Invalid partition 2 **
> > Couldn't find partition mmc 1:2
> > test/dm/part.c:20, do_test(): expected == part_get_info_by_dev_and_name_or_num("mmc", part_str, &mmc_dev_desc, &part_info, whole): Expected 0x2 (2), got 0xfffffffe (-2)
> > test/dm/part.c:82, dm_test_part(): 0 == do_test(uts, 2, "1:2", 0): Expected 0x0 (0), got 0x1 (1)
> > Test: dm_test_part: part.c (flat tree)
> > ** No device specified **
> > Couldn't find partition mmc <NULL>
> > ** No device specified **
> > Couldn't find partition mmc
> > ** No partition table - mmc 0 **
> > Couldn't find partition mmc 0
> > Could not find "test1" partition
> > ** Bad device specification mmc #test1 **
> > ** Bad device specification mmc #test1 **
> > Couldn't find partition mmc #test1
> > ** Bad partition specification mmc 1:0 **
> > Couldn't find partition mmc 1:0
> > ** Invalid partition 2 **
> > Couldn't find partition mmc 1:2
> > test/dm/part.c:20, do_test(): expected == part_get_info_by_dev_and_name_or_num("mmc", part_str, &mmc_dev_desc, &part_info, whole): Expected 0x2 (2), got 0xfffffffe (-2)
> > test/dm/part.c:82, dm_test_part(): 0 == do_test(uts, 2, "1:2", 0): Expected 0x0 (0), got 0x1 (1)
> > Test dm_test_part failed 4 times
> > Failures: 4
> > =>
> 
> Oh dear. I believe this is an ordering problem. These two patches need
> to be applied together because the first one changes mmc1.img and the
> second one relies on that change:
> 
> part: Add a function to find the first bootable partition
> dm: part: Update test to use mmc2
> 
> I have them quite far apart in the series.
> 
> I can merge them into one commit, perhaps?
> 
> >
> > And further tests down the series also fail / introduce failures, but
> > this is the first one, and why I thought v2 had more problems.
> 
> For some reason I'm not seeing this, but it could be another ordering
> thing. I don't see failures on CI but it only tests the whole.
> 
> Let me know what you'd like me to do. I don't currently have a way to
> run tests on every commit, so my testing there is a bit random. I
> normally just build-test the series and then check with CI.

Well, your ordering comment is interesting. I bisect'd down to this
patch being a problem because with the full series applied I see:
========================================== FAILURES ===========================================
___________________________________ test_ut_dm_init_bootstd ___________________________________
test/py/tests/test_ut.py:320: in test_ut_dm_init_bootstd
    setup_bootflow_image(u_boot_console)
test/py/tests/test_ut.py:226: in setup_bootflow_image
    fname, mnt = setup_image(cons, mmc_dev, 0xc, second_part=True)
test/py/tests/test_ut.py:45: in setup_image
    u_boot_utils.run_and_log(cons, 'sudo sfdisk %s' % fname,
test/py/u_boot_utils.py:180: in run_and_log
    output = runner.run(cmd, ignore_errors=ignore_errors, stdin=stdin)
test/py/multiplexed_log.py:182: in run
    raise exception
E   ValueError: Exit code: 1
------------------------------------ Captured stdout call -------------------------------------
+qemu-img create /home/trini/work/u-boot/u-boot/mmc1.img 20M
Formatting '/home/trini/work/u-boot/u-boot/mmc1.img', fmt=raw size=20971520
+sudo sfdisk /home/trini/work/u-boot/u-boot/mmc1.img
Checking that no-one is using this disk right now ... OK

Disk /home/trini/work/u-boot/u-boot/mmc1.img: 20 MiB, 20971520 bytes, 40960 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

>>> Created a new DOS disklabel with disk identifier 0xab7e7834.
/home/trini/work/u-boot/u-boot/mmc1.img1: Created a new partition 1 of type 'W95 FAT32 (LBA)' and of size 18 MiB.
/home/trini/work/u-boot/u-boot/mmc1.img2: All space for primary partitions is in use.
Failed to add #2 partition: Invalid argument
Leaving.

Exit code: 1
__________________________ test_ut[ut_bootstd_bootdev_test_bootable] __________________________
test/py/tests/test_ut.py:346: in test_ut
    assert output.endswith('Failures: 0')
E   AssertionError: assert False
E    +  where False = <built-in method endswith of str object at 0x1e2fe00>('Failures: 0')
E    +    where <built-in method endswith of str object at 0x1e2fe00> = 'Test: bootdev_test_bootable: bootdev.c\r\r\ntest/boot/bootdev.c:452, bootdev_test_bootable(): -EINVAL == bootdev_find...flow): Expected 0xffffffea (-22), got 0xffffffa3 (-93)\r\r\nTest bootdev_test_bootable failed 2 times\r\r\nFailures: 2'.endswith
------------------------------------ Captured stdout call -------------------------------------
=> ut bootstd bootdev_test_bootable

Test: bootdev_test_bootable: bootdev.c

test/boot/bootdev.c:452, bootdev_test_bootable(): -EINVAL == bootdev_find_in_blk(iter.dev, blk, &iter, &bflow): Expected 0xffffffea (-22), got 0xffffffa3 (-93)

Test: bootdev_test_bootable: bootdev.c (flat tree)

test/boot/bootdev.c:452, bootdev_test_bootable(): -EINVAL == bootdev_find_in_blk(iter.dev, blk, &iter, &bflow): Expected 0xffffffea (-22), got 0xffffffa3 (-93)

Test bootdev_test_bootable failed 2 times

Failures: 2

=> 
_________________________ test_ut[ut_bootstd_bootdev_test_hunt_scan] __________________________
test/py/tests/test_ut.py:345: in test_ut
    output = u_boot_console.run_command('ut ' + ut_subtest)
test/py/u_boot_console_base.py:266: in run_command
    m = self.p.expect([self.prompt_compiled] + self.bad_patterns)
test/py/u_boot_spawn.py:193: in expect
    raise Timeout()
E   u_boot_spawn.Timeout
------------------------------------ Captured stdout call -------------------------------------
=> ut bootstd bootdev_test_hunt_scan

Test: bootdev_test_hunt_scan: bootdev.c

Hunting with: simple_bus

Found 2 extension board(s).

Hunting with: mmc

Scanning bootdev 'mmc2.bootdev':

Scanning bootdev 'mmc1.bootdev':

Scanning bootdev 'mmc0.bootdev':

Hunting with: nvme

Hunting with: scsi

scanning bus for devices...

  Device 0: (0:0) Vendor:  Prod.:  Rev: 

            Type: Hard Disk

            Capacity: 1.9 MB = 0.0 GB (4095 x 512)

Hunting with: spi_flash

Hunting with: virtio

Scanning bootdev 'scsi.id0lun0.bootdev':

Hunting with: ide

Bus 0: not available  

Hunting with: usb

Bus usb at 1: scanning bus usb at 1 for devices... 5 USB Device(s) found

Scanning bootdev 'usb_mass_storage.lun0.bootdev':

Scanning bootdev 'usb_mass_storage.lun0.bootdev':

Scanning bootdev 'usb_mass_storage.lun0.bootdev':

Hunting with: ethernet

BOOTP broadcast 1

BOOTP broadcast 2

BOOTP broadcast 3

BOOTP broadcast 4

BOOTP broadcast 5

BOOTP broadcast 6

BOOTP broadcast 7

BOOTP broadcast 8

BOOTP broadcast 9

BOOTP broadcast 10

BOOTP broadcast 11

BOOTP broadcast 12

BOOTP broadcast 13

BOOTP broadcast 14

BOOTP broadcast 15

___________________________ test_ut[ut_bootstd_bootdev_test_order] ____________________________
test/py/tests/test_ut.py:346: in test_ut
    assert output.endswith('Failures: 0')
E   AssertionError: assert False
E    +  where False = <built-in method endswith of str object at 0x7fcea2215030>('Failures: 0')
E    +    where <built-in method endswith of str object at 0x7fcea2215030> = 'Test: bootdev_test_order: bootdev.c\r\r\ntest/boot/bootdev.c:205, bootdev_test_order(): 0 == bootflow_scan_first(((vo...&iter, 0, &bflow): Expected 0x0 (0), got 0xffffffed (-19)\r\r\nTest bootdev_test_order failed 2 times\r\r\nFailures: 2'.endswith
------------------------------------ Captured stdout call -------------------------------------
=> ut bootstd bootdev_test_order

Test: bootdev_test_order: bootdev.c

test/boot/bootdev.c:205, bootdev_test_order(): 0 == bootflow_scan_first(((void *)0), ((void *)0), &iter, 0, &bflow): Expected 0x0 (0), got 0xffffffed (-19)

Test: bootdev_test_order: bootdev.c (flat tree)

test/boot/bootdev.c:205, bootdev_test_order(): 0 == bootflow_scan_first(((void *)0), ((void *)0), &iter, 0, &bflow): Expected 0x0 (0), got 0xffffffed (-19)

Test bootdev_test_order failed 2 times

Failures: 2

=> 
_______________________ test_ut[ut_bootstd_bootdev_test_order_default] ________________________
test/py/tests/test_ut.py:346: in test_ut
    assert output.endswith('Failures: 0')
E   AssertionError: assert False
E    +  where False = <built-in method endswith of str object at 0x1d5f460>('Failures: 0')
E    +    where <built-in method endswith of str object at 0x1d5f460> = 'Test: bootdev_test_order_default: bootdev.c\r\r\ntest/boot/bootdev.c:237, bootdev_test_order_default(): 0 == bootflow..., &bflow): Expected 0x0 (0), got 0xffffffed (-19)\r\r\nTest bootdev_test_order_default failed 2 times\r\r\nFailures: 2'.endswith
------------------------------------ Captured stdout setup ------------------------------------
/u-boot
sandbox_serial serial: pinctrl_select_state_full: uclass_get_device_by_phandle_id: err=-19




U-Boot 2023.01-00788-g3891c68ef50e (Jan 24 2023 - 10:41:56 -0500)



Reset Status: WARM Reset Status: COLD

Model: sandbox

DRAM:  256 MiB

Core:  268 devices, 95 uclasses, devicetree: board

WDT:   Not starting wdt-gpio-toggle

wdt_gpio wdt-gpio-level: Request for wdt gpio failed: -16

WDT:   Not starting wdt at 0

MMC:   mmc2: 2 (SD), mmc1: 1 (SD), mmc0: 0 (SD)

Loading Environment from nowhere... OK

In:    cros-ec-keyb

Out:   vidconsole

Err:   vidconsole

Model: sandbox

Net:   eth0: eth at 10002000, eth5: eth at 10003000, eth3: sbe5, eth6: eth at 10004000, eth8: phy-test-eth, eth4: dsa-test-eth, eth2: lan0, eth7: lan1

Hit any key to stop autoboot:  2  0

=> 
------------------------------------ Captured stdout call -------------------------------------
=> ut bootstd bootdev_test_order_default

Test: bootdev_test_order_default: bootdev.c

test/boot/bootdev.c:237, bootdev_test_order_default(): 0 == bootflow_scan_first(((void *)0), ((void *)0), &iter, 0, &bflow): Expected 0x0 (0), got 0xffffffed (-19)

Test: bootdev_test_order_default: bootdev.c (flat tree)

test/boot/bootdev.c:237, bootdev_test_order_default(): 0 == bootflow_scan_first(((void *)0), ((void *)0), &iter, 0, &bflow): Expected 0x0 (0), got 0xffffffed (-19)

Test bootdev_test_order_default failed 2 times

Failures: 2

=> 
____________________________ test_ut[ut_bootstd_bootdev_test_prio] ____________________________
test/py/tests/test_ut.py:346: in test_ut
    assert output.endswith('Failures: 0')
E   AssertionError: assert False
E    +  where False = <built-in method endswith of str object at 0x1e5f1f0>('Failures: 0')
E    +    where <built-in method endswith of str object at 0x1e5f1f0> = 'Test: bootdev_test_prio: bootdev.c\r\r\nstarting USB...\r\r\nBus usb at 1: scanning bus usb at 1 for devices... 5 USB Devic... &iter, 0, &bflow): Expected 0x0 (0), got 0xffffffed (-19)\r\r\nTest bootdev_test_prio failed 2 times\r\r\nFailures: 2'.endswith
------------------------------------ Captured stdout setup ------------------------------------
/u-boot
sandbox_serial serial: pinctrl_select_state_full: uclass_get_device_by_phandle_id: err=-19




U-Boot 2023.01-00788-g3891c68ef50e (Jan 24 2023 - 10:41:56 -0500)



Reset Status: WARM Reset Status: COLD

Model: sandbox

DRAM:  256 MiB

Core:  268 devices, 95 uclasses, devicetree: board

WDT:   Not starting wdt-gpio-toggle

wdt_gpio wdt-gpio-level: Request for wdt gpio failed: -16

WDT:   Not starting wdt at 0

MMC:   mmc2: 2 (SD), mmc1: 1 (SD), mmc0: 0 (SD)

Loading Environment from nowhere... OK

In:    cros-ec-keyb

Out:   vidconsole

Err:   vidconsole

Model: sandbox

Net:   eth0: eth at 10002000, eth5: eth at 10003000, eth3: sbe5, eth6: eth at 10004000, eth8: phy-test-eth, eth4: dsa-test-eth, eth2: lan0, eth7: lan1

Hit any key to stop autoboot:  2  0

=> 
------------------------------------ Captured stdout call -------------------------------------
=> ut bootstd bootdev_test_prio

Test: bootdev_test_prio: bootdev.c

starting USB...

Bus usb at 1: scanning bus usb at 1 for devices... 5 USB Device(s) found

       scanning usb for storage devices... 3 Storage Device(s) found

test/boot/bootdev.c:272, bootdev_test_prio(): 0 == bootflow_scan_first(((void *)0), ((void *)0), &iter, 0, &bflow): Expected 0x0 (0), got 0xffffffed (-19)

Test: bootdev_test_prio: bootdev.c (flat tree)

starting USB...

Bus usb at 1: scanning bus usb at 1 for devices... 5 USB Device(s) found

       scanning usb for storage devices... 6 Storage Device(s) found

test/boot/bootdev.c:272, bootdev_test_prio(): 0 == bootflow_scan_first(((void *)0), ((void *)0), &iter, 0, &bflow): Expected 0x0 (0), got 0xffffffed (-19)

Test bootdev_test_prio failed 2 times

Failures: 2

=> 
______________________________ test_ut[ut_bootstd_bootflow_cmd] _______________________________
test/py/tests/test_ut.py:346: in test_ut
    assert output.endswith('Failures: 0')
E   assert False
E    +  where False = <built-in method endswith of str object at 0x1ebeb90>('Failures: 0')
E    +    where <built-in method endswith of str object at 0x1ebeb90> = "Test: bootflow_cmd: bootflow.c\r\r\nScanning for bootflows in bootdev 'mmc1.bootdev'\r\r\nSeq  Method       State   U...     /extlinux/extlinux.conf',\r\r\n     got 'No more bootdevs'\r\r\nTest bootflow_cmd failed 2 times\r\r\nFailures: 2".endswith
------------------------------------ Captured stdout setup ------------------------------------
/u-boot
sandbox_serial serial: pinctrl_select_state_full: uclass_get_device_by_phandle_id: err=-19




U-Boot 2023.01-00788-g3891c68ef50e (Jan 24 2023 - 10:41:56 -0500)



Reset Status: WARM Reset Status: COLD

Model: sandbox

DRAM:  256 MiB

Core:  268 devices, 95 uclasses, devicetree: board

WDT:   Not starting wdt-gpio-toggle

wdt_gpio wdt-gpio-level: Request for wdt gpio failed: -16

WDT:   Not starting wdt at 0

MMC:   mmc2: 2 (SD), mmc1: 1 (SD), mmc0: 0 (SD)

Loading Environment from nowhere... OK

In:    cros-ec-keyb

Out:   vidconsole

Err:   vidconsole

Model: sandbox

Net:   eth0: eth at 10002000, eth5: eth at 10003000, eth3: sbe5, eth6: eth at 10004000, eth8: phy-test-eth, eth4: dsa-test-eth, eth2: lan0, eth7: lan1

Hit any key to stop autoboot:  2  0

=> 
------------------------------------ Captured stdout call -------------------------------------
=> ut bootstd bootflow_cmd

Test: bootflow_cmd: bootflow.c

Scanning for bootflows in bootdev 'mmc1.bootdev'

Seq  Method       State   Uclass    Part  Name                      Filename

---  -----------  ------  --------  ----  ------------------------  ----------------

Scanning bootdev 'mmc2.bootdev':

Scanning bootdev 'mmc1.bootdev':

No more bootdevs

---  -----------  ------  --------  ----  ------------------------  ----------------

(0 bootflows, 0 valid)

test/boot/bootflow.c:60, bootflow_cmd(): console: 

Expected '  0  syslinux     ready   mmc          1  mmc1.bootdev.part_1       /extlinux/extlinux.conf',

     got 'No more bootdevs'

Test: bootflow_cmd: bootflow.c (flat tree)

Scanning for bootflows in bootdev 'mmc1.bootdev'

Seq  Method       State   Uclass    Part  Name                      Filename

---  -----------  ------  --------  ----  ------------------------  ----------------

Scanning bootdev 'mmc2.bootdev':

Scanning bootdev 'mmc1.bootdev':

No more bootdevs

---  -----------  ------  --------  ----  ------------------------  ----------------

(0 bootflows, 0 valid)

test/boot/bootflow.c:60, bootflow_cmd(): console: 

Expected '  0  syslinux     ready   mmc          1  mmc1.bootdev.part_1       /extlinux/extlinux.conf',

     got 'No more bootdevs'

Test bootflow_cmd failed 2 times

Failures: 2

=> 
____________________________ test_ut[ut_bootstd_bootflow_cmd_boot] ____________________________
test/py/tests/test_ut.py:346: in test_ut
    assert output.endswith('Failures: 0')
E   assert False
E    +  where False = <built-in method endswith of str object at 0x1e96750>('Failures: 0')
E    +    where <built-in method endswith of str object at 0x1e96750> = 'Test: bootflow_cmd_boot: bootflow.c\r\r\nCannot find bootflow \'0\' in bootdev \'mmc1.bootdev\' (err=-2)\r\r\ntest/bo...and("bootflow select 0", 0): Expected 0x0 (0), got 0x1 (1)\r\r\nTest bootflow_cmd_boot failed 2 times\r\r\nFailures: 2'.endswith
------------------------------------ Captured stdout setup ------------------------------------
/u-boot
sandbox_serial serial: pinctrl_select_state_full: uclass_get_device_by_phandle_id: err=-19




U-Boot 2023.01-00788-g3891c68ef50e (Jan 24 2023 - 10:41:56 -0500)



Reset Status: WARM Reset Status: COLD

Model: sandbox

DRAM:  256 MiB

Core:  268 devices, 95 uclasses, devicetree: board

WDT:   Not starting wdt-gpio-toggle

wdt_gpio wdt-gpio-level: Request for wdt gpio failed: -16

WDT:   Not starting wdt at 0

MMC:   mmc2: 2 (SD), mmc1: 1 (SD), mmc0: 0 (SD)

Loading Environment from nowhere... OK

In:    cros-ec-keyb

Out:   vidconsole

Err:   vidconsole

Model: sandbox

Net:   eth0: eth at 10002000, eth5: eth at 10003000, eth3: sbe5, eth6: eth at 10004000, eth8: phy-test-eth, eth4: dsa-test-eth, eth2: lan0, eth7: lan1

Hit any key to stop autoboot:  2  0

=> 
------------------------------------ Captured stdout call -------------------------------------
=> ut bootstd bootflow_cmd_boot

Test: bootflow_cmd_boot: bootflow.c

Cannot find bootflow '0' in bootdev 'mmc1.bootdev' (err=-2)

test/boot/bootflow.c:486, bootflow_cmd_boot(): 0 == run_command("bootflow select 0", 0): Expected 0x0 (0), got 0x1 (1)

Test: bootflow_cmd_boot: bootflow.c (flat tree)

Cannot find bootflow '0' in bootdev 'mmc1.bootdev' (err=-2)

test/boot/bootflow.c:486, bootflow_cmd_boot(): 0 == run_command("bootflow select 0", 0): Expected 0x0 (0), got 0x1 (1)

Test bootflow_cmd_boot failed 2 times

Failures: 2

=> 
____________________________ test_ut[ut_bootstd_bootflow_cmd_glob] ____________________________
test/py/tests/test_ut.py:346: in test_ut
    assert output.endswith('Failures: 0')
E   assert False
E    +  where False = <built-in method endswith of str object at 0x1ec5e00>('Failures: 0')
E    +    where <built-in method endswith of str object at 0x1ec5e00> = "Test: bootflow_cmd_glob: bootflow.c\r\r\nScanning for bootflows in all bootdevs\r\r\nSeq  Method       State   Uclass...ux.conf',\r\r\n     got 'Scanning bootdev 'mmc0.bootdev':'\r\r\nTest bootflow_cmd_glob failed 2 times\r\r\nFailures: 2".endswith
------------------------------------ Captured stdout setup ------------------------------------
/u-boot
sandbox_serial serial: pinctrl_select_state_full: uclass_get_device_by_phandle_id: err=-19




U-Boot 2023.01-00788-g3891c68ef50e (Jan 24 2023 - 10:41:56 -0500)



Reset Status: WARM Reset Status: COLD

Model: sandbox

DRAM:  256 MiB

Core:  268 devices, 95 uclasses, devicetree: board

WDT:   Not starting wdt-gpio-toggle

wdt_gpio wdt-gpio-level: Request for wdt gpio failed: -16

WDT:   Not starting wdt at 0

MMC:   mmc2: 2 (SD), mmc1: 1 (SD), mmc0: 0 (SD)

Loading Environment from nowhere... OK

In:    cros-ec-keyb

Out:   vidconsole

Err:   vidconsole

Model: sandbox

Net:   eth0: eth at 10002000, eth5: eth at 10003000, eth3: sbe5, eth6: eth at 10004000, eth8: phy-test-eth, eth4: dsa-test-eth, eth2: lan0, eth7: lan1

Hit any key to stop autoboot:  2  0

=> 
------------------------------------ Captured stdout call -------------------------------------
=> ut bootstd bootflow_cmd_glob

Test: bootflow_cmd_glob: bootflow.c

Scanning for bootflows in all bootdevs

Seq  Method       State   Uclass    Part  Name                      Filename

---  -----------  ------  --------  ----  ------------------------  ----------------

Scanning bootdev 'mmc2.bootdev':

Scanning bootdev 'mmc1.bootdev':

Scanning bootdev 'mmc0.bootdev':

No more bootdevs

---  -----------  ------  --------  ----  ------------------------  ----------------

(0 bootflows, 0 valid)

test/boot/bootflow.c:139, bootflow_cmd_glob(): console: 

Expected '  0  syslinux     ready   mmc          1  mmc1.bootdev.part_1       /extlinux/extlinux.conf',

     got 'Scanning bootdev 'mmc0.bootdev':'

Test: bootflow_cmd_glob: bootflow.c (flat tree)

Scanning for bootflows in all bootdevs

Seq  Method       State   Uclass    Part  Name                      Filename

---  -----------  ------  --------  ----  ------------------------  ----------------

Scanning bootdev 'mmc2.bootdev':

Scanning bootdev 'mmc1.bootdev':

Scanning bootdev 'mmc0.bootdev':

No more bootdevs

---  -----------  ------  --------  ----  ------------------------  ----------------

(0 bootflows, 0 valid)

test/boot/bootflow.c:139, bootflow_cmd_glob(): console: 

Expected '  0  syslinux     ready   mmc          1  mmc1.bootdev.part_1       /extlinux/extlinux.conf',

     got 'Scanning bootdev 'mmc0.bootdev':'

Test bootflow_cmd_glob failed 2 times

Failures: 2

=> 
_________________________ test_ut[ut_bootstd_bootflow_cmd_hunt_label] _________________________
test/py/tests/test_ut.py:346: in test_ut
    assert output.endswith('Failures: 0')
E   assert False
E    +  where False = <built-in method endswith of str object at 0x1ed37e0>('Failures: 0')
E    +    where <built-in method endswith of str object at 0x1ed37e0> = "Test: bootflow_cmd_hunt_label: bootflow.c\r\r\nScanning for bootflows with label 'mmc'\r\r\nSeq  Method       State  ...f',\r\r\n     got 'Scanning bootdev 'mmc0.bootdev':'\r\r\nTest bootflow_cmd_hunt_label failed 2 times\r\r\nFailures: 2".endswith
------------------------------------ Captured stdout setup ------------------------------------
/u-boot
sandbox_serial serial: pinctrl_select_state_full: uclass_get_device_by_phandle_id: err=-19




U-Boot 2023.01-00788-g3891c68ef50e (Jan 24 2023 - 10:41:56 -0500)



Reset Status: WARM Reset Status: COLD

Model: sandbox

DRAM:  256 MiB

Core:  268 devices, 95 uclasses, devicetree: board

WDT:   Not starting wdt-gpio-toggle

wdt_gpio wdt-gpio-level: Request for wdt gpio failed: -16

WDT:   Not starting wdt at 0

MMC:   mmc2: 2 (SD), mmc1: 1 (SD), mmc0: 0 (SD)

Loading Environment from nowhere... OK

In:    cros-ec-keyb

Out:   vidconsole

Err:   vidconsole

Model: sandbox

Net:   eth0: eth at 10002000, eth5: eth at 10003000, eth3: sbe5, eth6: eth at 10004000, eth8: phy-test-eth, eth4: dsa-test-eth, eth2: lan0, eth7: lan1

Hit any key to stop autoboot:  2  0

=> 
------------------------------------ Captured stdout call -------------------------------------
=> ut bootstd bootflow_cmd_hunt_label

Test: bootflow_cmd_hunt_label: bootflow.c

Scanning for bootflows with label 'mmc'

Seq  Method       State   Uclass    Part  Name                      Filename

---  -----------  ------  --------  ----  ------------------------  ----------------

Hunting with: simple_bus

Found 2 extension board(s).

Hunting with: mmc

Scanning bootdev 'mmc2.bootdev':

Scanning bootdev 'mmc1.bootdev':

Scanning bootdev 'mmc0.bootdev':

No more bootdevs

---  -----------  ------  --------  ----  ------------------------  ----------------

(0 bootflows, 0 valid)

test/boot/bootflow.c:616, bootflow_cmd_hunt_label(): console: 

Expected '  0  syslinux     ready   mmc          1  mmc1.bootdev.part_1       /extlinux/extlinux.conf',

     got 'Scanning bootdev 'mmc0.bootdev':'

Test: bootflow_cmd_hunt_label: bootflow.c (flat tree)

Scanning for bootflows with label 'mmc'

Seq  Method       State   Uclass    Part  Name                      Filename

---  -----------  ------  --------  ----  ------------------------  ----------------

Hunting with: simple_bus

Found 2 extension board(s).

Hunting with: mmc

Scanning bootdev 'mmc2.bootdev':

Scanning bootdev 'mmc1.bootdev':

Scanning bootdev 'mmc0.bootdev':

No more bootdevs

---  -----------  ------  --------  ----  ------------------------  ----------------

(0 bootflows, 0 valid)

test/boot/bootflow.c:616, bootflow_cmd_hunt_label(): console: 

Expected '  0  syslinux     ready   mmc          1  mmc1.bootdev.part_1       /extlinux/extlinux.conf',

     got 'Scanning bootdev 'mmc0.bootdev':'

Test bootflow_cmd_hunt_label failed 2 times

Failures: 2

=> 
________________________ test_ut[ut_bootstd_bootflow_cmd_hunt_single] _________________________
test/py/tests/test_ut.py:346: in test_ut
    assert output.endswith('Failures: 0')
E   assert False
E    +  where False = <built-in method endswith of str object at 0x1ed4680>('Failures: 0')
E    +    where <built-in method endswith of str object at 0x1ed4680> = "Test: bootflow_cmd_hunt_single: bootflow.c\r\r\nScanning for bootflows with label 'mmc1'\r\r\nSeq  Method       State... valid)',\r\r\n     got to '(0 bootflows, 0 valid)'\r\r\nTest bootflow_cmd_hunt_single failed 2 times\r\r\nFailures: 2".endswith
------------------------------------ Captured stdout setup ------------------------------------
/u-boot
sandbox_serial serial: pinctrl_select_state_full: uclass_get_device_by_phandle_id: err=-19




U-Boot 2023.01-00788-g3891c68ef50e (Jan 24 2023 - 10:41:56 -0500)



Reset Status: WARM Reset Status: COLD

Model: sandbox

DRAM:  256 MiB

Core:  268 devices, 95 uclasses, devicetree: board

WDT:   Not starting wdt-gpio-toggle

wdt_gpio wdt-gpio-level: Request for wdt gpio failed: -16

WDT:   Not starting wdt at 0

MMC:   mmc2: 2 (SD), mmc1: 1 (SD), mmc0: 0 (SD)

Loading Environment from nowhere... OK

In:    cros-ec-keyb

Out:   vidconsole

Err:   vidconsole

Model: sandbox

Net:   eth0: eth at 10002000, eth5: eth at 10003000, eth3: sbe5, eth6: eth at 10004000, eth8: phy-test-eth, eth4: dsa-test-eth, eth2: lan0, eth7: lan1

Hit any key to stop autoboot:  2  0

=> 
------------------------------------ Captured stdout call -------------------------------------
=> ut bootstd bootflow_cmd_hunt_single

Test: bootflow_cmd_hunt_single: bootflow.c

Scanning for bootflows with label 'mmc1'

Seq  Method       State   Uclass    Part  Name                      Filename

---  -----------  ------  --------  ----  ------------------------  ----------------

Hunting with: simple_bus

Found 2 extension board(s).

Hunting with: mmc

Scanning bootdev 'mmc1.bootdev':

No more bootdevs

---  -----------  ------  --------  ----  ------------------------  ----------------

(0 bootflows, 0 valid)

test/boot/bootflow.c:579, bootflow_cmd_hunt_single(): console: 

Expected '(1 bootflow, 1 valid)',

     got to '(0 bootflows, 0 valid)'

Test: bootflow_cmd_hunt_single: bootflow.c (flat tree)

Scanning for bootflows with label 'mmc1'

Seq  Method       State   Uclass    Part  Name                      Filename

---  -----------  ------  --------  ----  ------------------------  ----------------

Hunting with: simple_bus

Found 2 extension board(s).

Hunting with: mmc

Scanning bootdev 'mmc1.bootdev':

No more bootdevs

---  -----------  ------  --------  ----  ------------------------  ----------------

(0 bootflows, 0 valid)

test/boot/bootflow.c:579, bootflow_cmd_hunt_single(): console: 

Expected '(1 bootflow, 1 valid)',

     got to '(0 bootflows, 0 valid)'

Test bootflow_cmd_hunt_single failed 2 times

Failures: 2

=> 
____________________________ test_ut[ut_bootstd_bootflow_cmd_info] ____________________________
test/py/tests/test_ut.py:346: in test_ut
    assert output.endswith('Failures: 0')
E   assert False
E    +  where False = <built-in method endswith of str object at 0x1e96750>('Failures: 0')
E    +    where <built-in method endswith of str object at 0x1e96750> = 'Test: bootflow_cmd_info: bootflow.c\r\r\nCannot find bootflow \'0\' in bootdev \'mmc1.bootdev\' (err=-2)\r\r\ntest/bo...and("bootflow select 0", 0): Expected 0x0 (0), got 0x1 (1)\r\r\nTest bootflow_cmd_info failed 2 times\r\r\nFailures: 2'.endswith
------------------------------------ Captured stdout setup ------------------------------------
/u-boot
sandbox_serial serial: pinctrl_select_state_full: uclass_get_device_by_phandle_id: err=-19




U-Boot 2023.01-00788-g3891c68ef50e (Jan 24 2023 - 10:41:56 -0500)



Reset Status: WARM Reset Status: COLD

Model: sandbox

DRAM:  256 MiB

Core:  268 devices, 95 uclasses, devicetree: board

WDT:   Not starting wdt-gpio-toggle

wdt_gpio wdt-gpio-level: Request for wdt gpio failed: -16

WDT:   Not starting wdt at 0

MMC:   mmc2: 2 (SD), mmc1: 1 (SD), mmc0: 0 (SD)

Loading Environment from nowhere... OK

In:    cros-ec-keyb

Out:   vidconsole

Err:   vidconsole

Model: sandbox

Net:   eth0: eth at 10002000, eth5: eth at 10003000, eth3: sbe5, eth6: eth at 10004000, eth8: phy-test-eth, eth4: dsa-test-eth, eth2: lan0, eth7: lan1

Hit any key to stop autoboot:  2  0

=> 
------------------------------------ Captured stdout call -------------------------------------
=> ut bootstd bootflow_cmd_info

Test: bootflow_cmd_info: bootflow.c

Cannot find bootflow '0' in bootdev 'mmc1.bootdev' (err=-2)

test/boot/bootflow.c:215, bootflow_cmd_info(): 0 == run_command("bootflow select 0", 0): Expected 0x0 (0), got 0x1 (1)

Test: bootflow_cmd_info: bootflow.c (flat tree)

Cannot find bootflow '0' in bootdev 'mmc1.bootdev' (err=-2)

test/boot/bootflow.c:215, bootflow_cmd_info(): 0 == run_command("bootflow select 0", 0): Expected 0x0 (0), got 0x1 (1)

Test bootflow_cmd_info failed 2 times

Failures: 2

=> 
___________________________ test_ut[ut_bootstd_bootflow_cmd_label] ____________________________
test/py/tests/test_ut.py:346: in test_ut
    assert output.endswith('Failures: 0')
E   assert False
E    +  where False = <built-in method endswith of str object at 0x1ed6fe0>('Failures: 0')
E    +    where <built-in method endswith of str object at 0x1ed6fe0> = "Test: bootflow_cmd_label: bootflow.c\r\r\nScanning for bootflows with label 'mmc1'\r\r\nSeq  Method       State   Ucl...low, 1 valid)',\r\r\n     got to '(0 bootflows, 0 valid)'\r\r\nTest bootflow_cmd_label failed 2 times\r\r\nFailures: 2".endswith
------------------------------------ Captured stdout setup ------------------------------------
/u-boot
sandbox_serial serial: pinctrl_select_state_full: uclass_get_device_by_phandle_id: err=-19




U-Boot 2023.01-00788-g3891c68ef50e (Jan 24 2023 - 10:41:56 -0500)



Reset Status: WARM Reset Status: COLD

Model: sandbox

DRAM:  256 MiB

Core:  268 devices, 95 uclasses, devicetree: board

WDT:   Not starting wdt-gpio-toggle

wdt_gpio wdt-gpio-level: Request for wdt gpio failed: -16

WDT:   Not starting wdt at 0

MMC:   mmc2: 2 (SD), mmc1: 1 (SD), mmc0: 0 (SD)

Loading Environment from nowhere... OK

In:    cros-ec-keyb

Out:   vidconsole

Err:   vidconsole

Model: sandbox

Net:   eth0: eth at 10002000, eth5: eth at 10003000, eth3: sbe5, eth6: eth at 10004000, eth8: phy-test-eth, eth4: dsa-test-eth, eth2: lan0, eth7: lan1

Hit any key to stop autoboot:  2  0

=> 
------------------------------------ Captured stdout call -------------------------------------
=> ut bootstd bootflow_cmd_label

Test: bootflow_cmd_label: bootflow.c

Scanning for bootflows with label 'mmc1'

Seq  Method       State   Uclass    Part  Name                      Filename

---  -----------  ------  --------  ----  ------------------------  ----------------

Scanning bootdev 'mmc1.bootdev':

No more bootdevs

---  -----------  ------  --------  ----  ------------------------  ----------------

(0 bootflows, 0 valid)

test/boot/bootflow.c:87, bootflow_cmd_label(): console: 

Expected '(1 bootflow, 1 valid)',

     got to '(0 bootflows, 0 valid)'

Test: bootflow_cmd_label: bootflow.c (flat tree)

Scanning for bootflows with label 'mmc1'

Seq  Method       State   Uclass    Part  Name                      Filename

---  -----------  ------  --------  ----  ------------------------  ----------------

Scanning bootdev 'mmc1.bootdev':

No more bootdevs

---  -----------  ------  --------  ----  ------------------------  ----------------

(0 bootflows, 0 valid)

test/boot/bootflow.c:87, bootflow_cmd_label(): console: 

Expected '(1 bootflow, 1 valid)',

     got to '(0 bootflows, 0 valid)'

Test bootflow_cmd_label failed 2 times

Failures: 2

=> 
___________________________ test_ut[ut_bootstd_bootflow_cmd_scan_e] ___________________________
test/py/tests/test_ut.py:346: in test_ut
    assert output.endswith('Failures: 0')
E   assert False
E    +  where False = <built-in method endswith of str object at 0x1ecfc80>('Failures: 0')
E    +    where <built-in method endswith of str object at 0x1ecfc80> = "Test: bootflow_cmd_scan_e: bootflow.c\r\r\nScanning for bootflows in all bootdevs\r\r\nSeq  Method       State   Ucla...-2',\r\r\n     got '     ** No partition found, err=-93'\r\r\nTest bootflow_cmd_scan_e failed 2 times\r\r\nFailures: 2".endswith
------------------------------------ Captured stdout call -------------------------------------
=> ut bootstd bootflow_cmd_scan_e

Test: bootflow_cmd_scan_e: bootflow.c

Scanning for bootflows in all bootdevs

Seq  Method       State   Uclass    Part  Name                      Filename

---  -----------  ------  --------  ----  ------------------------  ----------------

Scanning bootdev 'mmc2.bootdev':

  0  syslinux     media   mmc          0  mmc2.bootdev.whole        <NULL>

     ** No partition found, err=-93

  1  efi          media   mmc          0  mmc2.bootdev.whole        <NULL>

     ** No partition found, err=-93

Scanning bootdev 'mmc1.bootdev':

  2  syslinux     media   mmc          0  mmc1.bootdev.whole        <NULL>

     ** No partition found, err=-93

  3  efi          media   mmc          0  mmc1.bootdev.whole        <NULL>

     ** No partition found, err=-93

Scanning bootdev 'mmc0.bootdev':

  4  syslinux     media   mmc          0  mmc0.bootdev.whole        <NULL>

     ** No partition found, err=-93

  5  efi          media   mmc          0  mmc0.bootdev.whole        <NULL>

     ** No partition found, err=-93

No more bootdevs

---  -----------  ------  --------  ----  ------------------------  ----------------

(6 bootflows, 0 valid)

test/boot/bootflow.c:177, bootflow_cmd_scan_e(): console: 

Expected '     ** No partition found, err=-2',

     got '     ** No partition found, err=-93'

Test: bootflow_cmd_scan_e: bootflow.c (flat tree)

Scanning for bootflows in all bootdevs

Seq  Method       State   Uclass    Part  Name                      Filename

---  -----------  ------  --------  ----  ------------------------  ----------------

Scanning bootdev 'mmc2.bootdev':

  0  syslinux     media   mmc          0  mmc2.bootdev.whole        <NULL>

     ** No partition found, err=-93

  1  efi          media   mmc          0  mmc2.bootdev.whole        <NULL>

     ** No partition found, err=-93

Scanning bootdev 'mmc1.bootdev':

  2  syslinux     media   mmc          0  mmc1.bootdev.whole        <NULL>

     ** No partition found, err=-93

  3  efi          media   mmc          0  mmc1.bootdev.whole        <NULL>

     ** No partition found, err=-93

Scanning bootdev 'mmc0.bootdev':

  4  syslinux     media   mmc          0  mmc0.bootdev.whole        <NULL>

     ** No partition found, err=-93

  5  efi          media   mmc          0  mmc0.bootdev.whole        <NULL>

     ** No partition found, err=-93

No more bootdevs

---  -----------  ------  --------  ----  ------------------------  ----------------

(6 bootflows, 0 valid)

test/boot/bootflow.c:177, bootflow_cmd_scan_e(): console: 

Expected '     ** No partition found, err=-2',

     got '     ** No partition found, err=-93'

Test bootflow_cmd_scan_e failed 2 times

Failures: 2

=> 
______________________________ test_ut[ut_bootstd_bootflow_iter] ______________________________
test/py/tests/test_ut.py:346: in test_ut
    assert output.endswith('Failures: 0')
E   AssertionError: assert False
E    +  where False = <built-in method endswith of str object at 0x7fcea224d770>('Failures: 0')
E    +    where <built-in method endswith of str object at 0x7fcea224d770> = 'Test: bootflow_iter: bootflow.c\r\r\ntest/boot/bootflow.c:307, bootflow_iter(): -ENOENT == bootflow_scan_next(&iter, ...&iter, &bflow): Expected 0xfffffffe (-2), got 0xffffffa3 (-93)\r\r\nTest bootflow_iter failed 2 times\r\r\nFailures: 2'.endswith
------------------------------------ Captured stdout setup ------------------------------------
/u-boot
sandbox_serial serial: pinctrl_select_state_full: uclass_get_device_by_phandle_id: err=-19




U-Boot 2023.01-00788-g3891c68ef50e (Jan 24 2023 - 10:41:56 -0500)



Reset Status: WARM Reset Status: COLD

Model: sandbox

DRAM:  256 MiB

Core:  268 devices, 95 uclasses, devicetree: board

WDT:   Not starting wdt-gpio-toggle

wdt_gpio wdt-gpio-level: Request for wdt gpio failed: -16

WDT:   Not starting wdt at 0

MMC:   mmc2: 2 (SD), mmc1: 1 (SD), mmc0: 0 (SD)

Loading Environment from nowhere... OK

In:    cros-ec-keyb

Out:   vidconsole

Err:   vidconsole

Model: sandbox

Net:   eth0: eth at 10002000, eth5: eth at 10003000, eth3: sbe5, eth6: eth at 10004000, eth8: phy-test-eth, eth4: dsa-test-eth, eth2: lan0, eth7: lan1

Hit any key to stop autoboot:  2  0

=> 
------------------------------------ Captured stdout call -------------------------------------
=> ut bootstd bootflow_iter

Test: bootflow_iter: bootflow.c

test/boot/bootflow.c:307, bootflow_iter(): -ENOENT == bootflow_scan_next(&iter, &bflow): Expected 0xfffffffe (-2), got 0xffffffa3 (-93)

Test: bootflow_iter: bootflow.c (flat tree)

test/boot/bootflow.c:307, bootflow_iter(): -ENOENT == bootflow_scan_next(&iter, &bflow): Expected 0xfffffffe (-2), got 0xffffffa3 (-93)

Test bootflow_iter failed 2 times

Failures: 2

=> 
__________________________ test_ut[ut_bootstd_bootflow_iter_disable] __________________________
test/py/tests/test_ut.py:346: in test_ut
    assert output.endswith('Failures: 0')
E   AssertionError: assert False
E    +  where False = <built-in method endswith of str object at 0x1ecf040>('Failures: 0')
E    +    where <built-in method endswith of str object at 0x1ecf040> = 'Test: bootflow_iter_disable: bootflow.c\r\r\nScanning for bootflows in all bootdevs\r\r\nSeq  Method       State   Uc...er, 0, &bflow): Expected 0x0 (0), got 0xffffffed (-19)\r\r\nTest bootflow_iter_disable failed 2 times\r\r\nFailures: 2'.endswith
------------------------------------ Captured stdout setup ------------------------------------
/u-boot
sandbox_serial serial: pinctrl_select_state_full: uclass_get_device_by_phandle_id: err=-19




U-Boot 2023.01-00788-g3891c68ef50e (Jan 24 2023 - 10:41:56 -0500)



Reset Status: WARM Reset Status: COLD

Model: sandbox

DRAM:  256 MiB

Core:  268 devices, 95 uclasses, devicetree: board

WDT:   Not starting wdt-gpio-toggle

wdt_gpio wdt-gpio-level: Request for wdt gpio failed: -16

WDT:   Not starting wdt at 0

MMC:   mmc2: 2 (SD), mmc1: 1 (SD), mmc0: 0 (SD)

Loading Environment from nowhere... OK

In:    cros-ec-keyb

Out:   vidconsole

Err:   vidconsole

Model: sandbox

Net:   eth0: eth at 10002000, eth5: eth at 10003000, eth3: sbe5, eth6: eth at 10004000, eth8: phy-test-eth, eth4: dsa-test-eth, eth2: lan0, eth7: lan1

Hit any key to stop autoboot:  2  0

=> 
------------------------------------ Captured stdout call -------------------------------------
=> ut bootstd bootflow_iter_disable

Test: bootflow_iter_disable: bootflow.c

Scanning for bootflows in all bootdevs

Seq  Method       State   Uclass    Part  Name                      Filename

---  -----------  ------  --------  ----  ------------------------  ----------------

Scanning global bootmeth 'firmware0':

Scanning bootdev 'mmc2.bootdev':

Scanning bootdev 'mmc1.bootdev':

Scanning bootdev 'mmc0.bootdev':

No more bootdevs

---  -----------  ------  --------  ----  ------------------------  ----------------

(0 bootflows, 0 valid)

test/boot/bootflow.c:419, bootflow_iter_disable(): 0 == bootflow_scan_first(((void *)0), ((void *)0), &iter, 0, &bflow): Expected 0x0 (0), got 0xffffffed (-19)

Test: bootflow_iter_disable: bootflow.c (flat tree)

Scanning for bootflows in all bootdevs

Seq  Method       State   Uclass    Part  Name                      Filename

---  -----------  ------  --------  ----  ------------------------  ----------------

Scanning global bootmeth 'firmware0':

Scanning bootdev 'mmc2.bootdev':

Scanning bootdev 'mmc1.bootdev':

Scanning bootdev 'mmc0.bootdev':

No more bootdevs

---  -----------  ------  --------  ----  ------------------------  ----------------

(0 bootflows, 0 valid)

test/boot/bootflow.c:419, bootflow_iter_disable(): 0 == bootflow_scan_first(((void *)0), ((void *)0), &iter, 0, &bflow): Expected 0x0 (0), got 0xffffffed (-19)

Test bootflow_iter_disable failed 2 times

Failures: 2

=> 
___________________________ test_ut[ut_bootstd_bootflow_menu_theme] ___________________________
test/py/tests/test_ut.py:346: in test_ut
    assert output.endswith('Failures: 0')
E   AssertionError: assert False
E    +  where False = <built-in method endswith of str object at 0x1ed1730>('Failures: 0')
E    +    where <built-in method endswith of str object at 0x1ed1730> = 'Test: bootflow_menu_theme: bootflow.c\r\r\ntest/boot/bootflow.c:640, check_font(): txt = NULL: Expected non-null, got...ITEM_DESC + i, font_size): Expected 0x0 (0), got 0x1 (1)\r\r\nTest bootflow_menu_theme failed 4 times\r\r\nFailures: 4'.endswith
------------------------------------ Captured stdout setup ------------------------------------
/u-boot
sandbox_serial serial: pinctrl_select_state_full: uclass_get_device_by_phandle_id: err=-19




U-Boot 2023.01-00788-g3891c68ef50e (Jan 24 2023 - 10:41:56 -0500)



Reset Status: WARM Reset Status: COLD

Model: sandbox

DRAM:  256 MiB

Core:  268 devices, 95 uclasses, devicetree: board

WDT:   Not starting wdt-gpio-toggle

wdt_gpio wdt-gpio-level: Request for wdt gpio failed: -16

WDT:   Not starting wdt at 0

MMC:   mmc2: 2 (SD), mmc1: 1 (SD), mmc0: 0 (SD)

Loading Environment from nowhere... OK

In:    cros-ec-keyb

Out:   vidconsole

Err:   vidconsole

Model: sandbox

Net:   eth0: eth at 10002000, eth5: eth at 10003000, eth3: sbe5, eth6: eth at 10004000, eth8: phy-test-eth, eth4: dsa-test-eth, eth2: lan0, eth7: lan1

Hit any key to stop autoboot:  2  0

=> 
------------------------------------ Captured stdout call -------------------------------------
=> ut bootstd bootflow_menu_theme

Test: bootflow_menu_theme: bootflow.c

test/boot/bootflow.c:640, check_font(): txt = NULL: Expected non-null, got NULL

test/boot/bootflow.c:675, bootflow_menu_theme(): 0 == check_font(uts, scn, ITEM_DESC + i, font_size): Expected 0x0 (0), got 0x1 (1)

Test: bootflow_menu_theme: bootflow.c (flat tree)

test/boot/bootflow.c:640, check_font(): txt = NULL: Expected non-null, got NULL

test/boot/bootflow.c:675, bootflow_menu_theme(): 0 == check_font(uts, scn, ITEM_DESC + i, font_size): Expected 0x0 (0), got 0x1 (1)

Test bootflow_menu_theme failed 4 times

Failures: 4

=> 
___________________________ test_ut[ut_bootstd_bootflow_scan_boot] ____________________________
test/py/tests/test_ut.py:346: in test_ut
    assert output.endswith('Failures: 0')
E   assert False
E    +  where False = <built-in method endswith of str object at 0x7fcea6b047b0>('Failures: 0')
E    +    where <built-in method endswith of str object at 0x7fcea6b047b0> = "Test: bootflow_scan_boot: bootflow.c\r\r\ntest/boot/bootflow.c:253, bootflow_scan_boot(): console: \r\r\nExpected '**...ow 'mmc1.bootdev.part_1' with syslinux',\r\r\n     got ''\r\r\nTest bootflow_scan_boot failed 2 times\r\r\nFailures: 2".endswith
------------------------------------ Captured stdout setup ------------------------------------
/u-boot
sandbox_serial serial: pinctrl_select_state_full: uclass_get_device_by_phandle_id: err=-19




U-Boot 2023.01-00788-g3891c68ef50e (Jan 24 2023 - 10:41:56 -0500)



Reset Status: WARM Reset Status: COLD

Model: sandbox

DRAM:  256 MiB

Core:  268 devices, 95 uclasses, devicetree: board

WDT:   Not starting wdt-gpio-toggle

wdt_gpio wdt-gpio-level: Request for wdt gpio failed: -16

WDT:   Not starting wdt at 0

MMC:   mmc2: 2 (SD), mmc1: 1 (SD), mmc0: 0 (SD)

Loading Environment from nowhere... OK

In:    cros-ec-keyb

Out:   vidconsole

Err:   vidconsole

Model: sandbox

Net:   eth0: eth at 10002000, eth5: eth at 10003000, eth3: sbe5, eth6: eth at 10004000, eth8: phy-test-eth, eth4: dsa-test-eth, eth2: lan0, eth7: lan1

Hit any key to stop autoboot:  2  0

=> 
------------------------------------ Captured stdout call -------------------------------------
=> ut bootstd bootflow_scan_boot

Test: bootflow_scan_boot: bootflow.c

test/boot/bootflow.c:253, bootflow_scan_boot(): console: 

Expected '** Booting bootflow 'mmc1.bootdev.part_1' with syslinux',

     got ''

Test: bootflow_scan_boot: bootflow.c (flat tree)

test/boot/bootflow.c:253, bootflow_scan_boot(): console: 

Expected '** Booting bootflow 'mmc1.bootdev.part_1' with syslinux',

     got ''

Test bootflow_scan_boot failed 2 times

Failures: 2

=> 
_____________________________ test_ut[ut_bootstd_bootflow_system] _____________________________
test/py/tests/test_ut.py:346: in test_ut
    assert output.endswith('Failures: 0')
E   assert False
E    +  where False = <built-in method endswith of str object at 0x1ecb980>('Failures: 0')
E    +    where <built-in method endswith of str object at 0x1ecb980> = "Test: bootflow_system: bootflow.c\r\r\nScanning for bootflows in all bootdevs\r\r\nSeq  Method       State   Uclass  ...otflows, 2 valid)',\r\r\n     got to '(1 bootflow, 1 valid)'\r\r\nTest bootflow_system failed 2 times\r\r\nFailures: 2".endswith
------------------------------------ Captured stdout call -------------------------------------
=> ut bootstd bootflow_system

Test: bootflow_system: bootflow.c

Scanning for bootflows in all bootdevs

Seq  Method       State   Uclass    Part  Name                      Filename

---  -----------  ------  --------  ----  ------------------------  ----------------

Scanning global bootmeth 'firmware0':

Scanning global bootmeth 'efi_mgr':

  0  efi_mgr      ready   (none)       0  <NULL>                    <NULL>

Scanning bootdev 'mmc2.bootdev':

Scanning bootdev 'mmc1.bootdev':

No more bootdevs

---  -----------  ------  --------  ----  ------------------------  ----------------

(1 bootflow, 1 valid)

test/boot/bootflow.c:388, bootflow_system(): console: 

Expected '(2 bootflows, 2 valid)',

     got to '(1 bootflow, 1 valid)'

Test: bootflow_system: bootflow.c (flat tree)

Scanning for bootflows in all bootdevs

Seq  Method       State   Uclass    Part  Name                      Filename

---  -----------  ------  --------  ----  ------------------------  ----------------

Scanning global bootmeth 'firmware0':

Scanning global bootmeth 'efi_mgr':

  0  efi_mgr      ready   (none)       0  <NULL>                    <NULL>

Scanning bootdev 'mmc2.bootdev':

Scanning bootdev 'mmc1.bootdev':

No more bootdevs

---  -----------  ------  --------  ----  ------------------------  ----------------

(1 bootflow, 1 valid)

test/boot/bootflow.c:388, bootflow_system(): console: 

Expected '(2 bootflows, 2 valid)',

     got to '(1 bootflow, 1 valid)'

Test bootflow_system failed 2 times

Failures: 2

=> 
_________________________________ test_ut[ut_dm_dm_test_part] _________________________________
test/py/tests/test_ut.py:346: in test_ut
    assert output.endswith('Failures: 0')
E   assert False
E    +  where False = <built-in method endswith of str object at 0x1efb850>('Failures: 0')
E    +    where <built-in method endswith of str object at 0x1efb850> = 'Test: dm_test_part: part.c\r\r\n** No device specified **\r\r\nCouldn\'t find partition mmc <NULL>\r\r\n** No device ...: 0 == do_test(uts, 1, "1:1", 0): Expected 0x0 (0), got 0x1 (1)\r\r\nTest dm_test_part failed 4 times\r\r\nFailures: 4'.endswith
------------------------------------ Captured stdout call -------------------------------------
=> ut dm dm_test_part

Test: dm_test_part: part.c

** No device specified **

Couldn't find partition mmc <NULL>

** No device specified **

Couldn't find partition mmc 

** No partition table - mmc 0 **

Couldn't find partition mmc 0

Could not find "test1" partition

** Bad device specification mmc #test1 **

** Bad device specification mmc #test1 **

Couldn't find partition mmc #test1

** Bad partition specification mmc 1:0 **

Couldn't find partition mmc 1:0

** No partition table - mmc 1 **

Couldn't find partition mmc 1:1

test/dm/part.c:20, do_test(): expected == part_get_info_by_dev_and_name_or_num("mmc", part_str, &mmc_dev_desc, &part_info, whole): Expected 0x1 (1), got 0xffffffa3 (-93)

test/dm/part.c:81, dm_test_part(): 0 == do_test(uts, 1, "1:1", 0): Expected 0x0 (0), got 0x1 (1)

Test: dm_test_part: part.c (flat tree)

** No device specified **

Couldn't find partition mmc <NULL>

** No device specified **

Couldn't find partition mmc 

** No partition table - mmc 0 **

Couldn't find partition mmc 0

Could not find "test1" partition

** Bad device specification mmc #test1 **

** Bad device specification mmc #test1 **

Couldn't find partition mmc #test1

** Bad partition specification mmc 1:0 **

Couldn't find partition mmc 1:0

** No partition table - mmc 1 **

Couldn't find partition mmc 1:1

test/dm/part.c:20, do_test(): expected == part_get_info_by_dev_and_name_or_num("mmc", part_str, &mmc_dev_desc, &part_info, whole): Expected 0x1 (1), got 0xffffffa3 (-93)

test/dm/part.c:81, dm_test_part(): 0 == do_test(uts, 1, "1:1", 0): Expected 0x0 (0), got 0x1 (1)

Test dm_test_part failed 4 times

Failures: 4

=> 
____________________________ test_ut[ut_dm_dm_test_part_bootable] _____________________________
test/py/tests/test_ut.py:346: in test_ut
    assert output.endswith('Failures: 0')
E   AssertionError: assert False
E    +  where False = <built-in method endswith of str object at 0x7fcea6afe850>('Failures: 0')
E    +    where <built-in method endswith of str object at 0x7fcea6afe850> = 'Test: dm_test_part_bootable: part.c\r\r\ntest/dm/part.c:104, dm_test_part_bootable(): 1 == part_get_bootable(desc): E...part_get_bootable(desc): Expected 0x1 (1), got 0x0 (0)\r\r\nTest dm_test_part_bootable failed 2 times\r\r\nFailures: 2'.endswith
------------------------------------ Captured stdout setup ------------------------------------
/u-boot
sandbox_serial serial: pinctrl_select_state_full: uclass_get_device_by_phandle_id: err=-19




U-Boot 2023.01-00788-g3891c68ef50e (Jan 24 2023 - 10:41:56 -0500)



Reset Status: WARM Reset Status: COLD

Model: sandbox

DRAM:  256 MiB

Core:  268 devices, 95 uclasses, devicetree: board

WDT:   Not starting wdt-gpio-toggle

wdt_gpio wdt-gpio-level: Request for wdt gpio failed: -16

WDT:   Not starting wdt at 0

MMC:   mmc2: 2 (SD), mmc1: 1 (SD), mmc0: 0 (SD)

Loading Environment from nowhere... OK

In:    cros-ec-keyb

Out:   vidconsole

Err:   vidconsole

Model: sandbox

Net:   eth0: eth at 10002000, eth5: eth at 10003000, eth3: sbe5, eth6: eth at 10004000, eth8: phy-test-eth, eth4: dsa-test-eth, eth2: lan0, eth7: lan1

Hit any key to stop autoboot:  2  0

=> 
------------------------------------ Captured stdout call -------------------------------------
=> ut dm dm_test_part_bootable

Test: dm_test_part_bootable: part.c

test/dm/part.c:104, dm_test_part_bootable(): 1 == part_get_bootable(desc): Expected 0x1 (1), got 0x0 (0)

Test: dm_test_part_bootable: part.c (flat tree)

test/dm/part.c:104, dm_test_part_bootable(): 1 == part_get_bootable(desc): Expected 0x1 (1), got 0x0 (0)

Test dm_test_part_bootable failed 2 times

Failures: 2

=> 
=================================== short test summary info ===================================
SKIPPED [1] test/py/tests/test_dfu.py:114: got empty parameter set ['env__usb_dev_port'], function test_dfu at /home/trini/work/u-boot/u-boot/test/py/tests/test_dfu.py:113
SKIPPED [1] test/py/conftest.py:535: .config feature "generate_acpi_table" enabled
SKIPPED [1] test/py/tests/test_efi_loader.py:82: No DHCP server available
SKIPPED [1] test/py/tests/test_efi_loader.py:104: No static network configuration is defined
SKIPPED [2] test/py/tests/test_efi_loader.py:120: Network not initialized
SKIPPED [5] test/py/conftest.py:531: .config feature "cmd_bootefi_selftest" not enabled
SKIPPED [1] test/py/conftest.py:531: .config feature "efi_tcg2_protocol" not enabled
SKIPPED [13] test/py/conftest.py:531: .config feature "cmd_fpga" not enabled
SKIPPED [1] test/py/conftest.py:531: .config feature "cmd_fpga_loadp" not enabled
SKIPPED [1] test/py/conftest.py:531: .config feature "cmd_fpga_loadbp" not enabled
SKIPPED [6] test/py/conftest.py:531: .config feature "image_format_legacy" not enabled
SKIPPED [5] test/py/conftest.py:531: .config feature "cmd_fpga_loadmk" not enabled
SKIPPED [2] test/py/conftest.py:531: .config feature "cmd_fpga_load_secure" not enabled
SKIPPED [1] test/py/tests/test_gpio.py:106: gpio not configured
SKIPPED [1] test/py/tests/test_gpio.py:130: gpio not configured
SKIPPED [1] test/py/tests/test_gpio.py:154: gpio not configured
SKIPPED [1] test/py/tests/test_gpio.py:178: gpio not configured
SKIPPED [1] test/py/tests/test_gpio.py:206: gpio not configured
SKIPPED [11] test/py/conftest.py:512: board "sandbox" not supported
SKIPPED [1] test/py/conftest.py:531: .config feature "cmd_log" not enabled
SKIPPED [1] test/py/tests/test_mmc_rd.py:134: got empty parameter set ['env__mmc_dev_config'], function test_mmc_dev at /home/trini/work/u-boot/u-boot/test/py/tests/test_mmc_rd.py:133
SKIPPED [1] test/py/tests/test_mmc_rd.py:155: got empty parameter set ['env__mmc_dev_config'], function test_mmc_rescan at /home/trini/work/u-boot/u-boot/test/py/tests/test_mmc_rd.py:154
SKIPPED [1] test/py/tests/test_mmc_rd.py:181: got empty parameter set ['env__mmc_dev_config'], function test_mmc_info at /home/trini/work/u-boot/u-boot/test/py/tests/test_mmc_rd.py:180
SKIPPED [1] test/py/tests/test_mmc_rd.py:218: got empty parameter set ['env__mmc_rd_config'], function test_mmc_rd at /home/trini/work/u-boot/u-boot/test/py/tests/test_mmc_rd.py:217
SKIPPED [1] test/py/tests/test_mmc_wr.py:38: got empty parameter set ['env__mmc_wr_config'], function test_mmc_wr at /home/trini/work/u-boot/u-boot/test/py/tests/test_mmc_wr.py:37
SKIPPED [1] test/py/tests/test_net.py:87: No DHCP server available
SKIPPED [1] test/py/tests/test_net.py:106: No static network configuration is defined
SKIPPED [1] test/py/tests/test_net.py:124: Network not initialized
SKIPPED [1] test/py/tests/test_net.py:141: Network not initialized
SKIPPED [1] test/py/tests/test_net.py:182: Network not initialized
SKIPPED [1] test/py/conftest.py:531: .config feature "sandbox_crash_reset" not enabled
SKIPPED [1] test/py/tests/test_sf.py:167: got empty parameter set ['env__sf_config'], function test_sf_read at /home/trini/work/u-boot/u-boot/test/py/tests/test_sf.py:166
SKIPPED [1] test/py/tests/test_sf.py:174: got empty parameter set ['env__sf_config'], function test_sf_read_twice at /home/trini/work/u-boot/u-boot/test/py/tests/test_sf.py:173
SKIPPED [1] test/py/tests/test_sf.py:186: got empty parameter set ['env__sf_config'], function test_sf_erase at /home/trini/work/u-boot/u-boot/test/py/tests/test_sf.py:185
SKIPPED [1] test/py/tests/test_sf.py:209: got empty parameter set ['env__sf_config'], function test_sf_update at /home/trini/work/u-boot/u-boot/test/py/tests/test_sf.py:208
SKIPPED [1] test/py/tests/test_spl.py: got empty parameter set ['ut_spl_subtest'], function test_spl at /home/trini/work/u-boot/u-boot/test/py/tests/test_spl.py:7
SKIPPED [1] test/py/tests/test_ums.py:76: got empty parameter set ['env__usb_dev_port'], function test_ums at /home/trini/work/u-boot/u-boot/test/py/tests/test_ums.py:75
SKIPPED [1] test/py/tests/test_vpl.py: got empty parameter set ['ut_vpl_subtest'], function test_vpl at /home/trini/work/u-boot/u-boot/test/py/tests/test_vpl.py:7
SKIPPED [2] test/py/conftest.py:535: .config feature "sandbox" enabled
SKIPPED [3] test/py/conftest.py:531: .config feature "efi_capsule_authenticate" not enabled
SKIPPED [3] test/py/tests/test_efi_secboot/conftest.py:237: Setup failed: cd /tmp/.bm-work/sandbox/persistent-data/mnt_efi_secboot_intca; sbsign --key TestCert.key --cert TestCert.crt --addcert TestSub.crt --out helloworld.efi.signed_ab helloworld.efi
SKIPPED [1] test/py/conftest.py:561: tool "mkfs.erofs" not in $PATH
FAILED test/py/tests/test_ut.py::test_ut_dm_init_bootstd - ValueError: Exit code: 1
FAILED test/py/tests/test_ut.py::test_ut[ut_bootstd_bootdev_test_bootable] - AssertionError:...
FAILED test/py/tests/test_ut.py::test_ut[ut_bootstd_bootdev_test_hunt_scan] - u_boot_spawn.T...
FAILED test/py/tests/test_ut.py::test_ut[ut_bootstd_bootdev_test_order] - AssertionError: as...
FAILED test/py/tests/test_ut.py::test_ut[ut_bootstd_bootdev_test_order_default] - AssertionE...
FAILED test/py/tests/test_ut.py::test_ut[ut_bootstd_bootdev_test_prio] - AssertionError: ass...
FAILED test/py/tests/test_ut.py::test_ut[ut_bootstd_bootflow_cmd] - assert False
FAILED test/py/tests/test_ut.py::test_ut[ut_bootstd_bootflow_cmd_boot] - assert False
FAILED test/py/tests/test_ut.py::test_ut[ut_bootstd_bootflow_cmd_glob] - assert False
FAILED test/py/tests/test_ut.py::test_ut[ut_bootstd_bootflow_cmd_hunt_label] - assert False
FAILED test/py/tests/test_ut.py::test_ut[ut_bootstd_bootflow_cmd_hunt_single] - assert False
FAILED test/py/tests/test_ut.py::test_ut[ut_bootstd_bootflow_cmd_info] - assert False
FAILED test/py/tests/test_ut.py::test_ut[ut_bootstd_bootflow_cmd_label] - assert False
FAILED test/py/tests/test_ut.py::test_ut[ut_bootstd_bootflow_cmd_scan_e] - assert False
FAILED test/py/tests/test_ut.py::test_ut[ut_bootstd_bootflow_iter] - AssertionError: assert ...
FAILED test/py/tests/test_ut.py::test_ut[ut_bootstd_bootflow_iter_disable] - AssertionError:...
FAILED test/py/tests/test_ut.py::test_ut[ut_bootstd_bootflow_menu_theme] - AssertionError: a...
FAILED test/py/tests/test_ut.py::test_ut[ut_bootstd_bootflow_scan_boot] - assert False
FAILED test/py/tests/test_ut.py::test_ut[ut_bootstd_bootflow_system] - assert False
FAILED test/py/tests/test_ut.py::test_ut[ut_dm_dm_test_part] - assert False
FAILED test/py/tests/test_ut.py::test_ut[ut_dm_dm_test_part_bootable] - AssertionError: asse...
============ 21 failed, 954 passed, 84 skipped, 4 deselected in 251.26s (0:04:11) =============

Which is more run than in CI (186 skipped), so there's a conflict with
other tests in here, I guess.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20230124/c20c2ea6/attachment.sig>


More information about the U-Boot mailing list