sandox: test: reactivate tests for the command LOG
Reactivate the CONFIG_CMD_LOG in sandbox to execute the LOG tests
by default and correct the test log format after 72fa1ad8d9 ("log: Allow
padding of the function name").
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Change-Id: I8b2905e3dfc95c21afd004977b40787144509b5c
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/234795
Reviewed-by: CITOOLS <MDG-smet-aci-reviews@list.st.com>
Reviewed-by: Patrice CHOTARD <patrice.chotard@foss.st.com>
This commit is contained in:
@ -28,7 +28,6 @@ CONFIG_AUTOBOOT_STOP_STR_CRYPT="$5$rounds=640000$HrpE65IkB8CM5nCL$BKT3QdF98Bo8fJ
|
||||
CONFIG_CONSOLE_RECORD=y
|
||||
CONFIG_CONSOLE_RECORD_OUT_SIZE=0x1000
|
||||
CONFIG_PRE_CONSOLE_BUFFER=y
|
||||
CONFIG_LOG=y
|
||||
CONFIG_DISPLAY_BOARDINFO_LATE=y
|
||||
CONFIG_MISC_INIT_F=y
|
||||
CONFIG_STACKPROTECTOR=y
|
||||
@ -105,6 +104,7 @@ CONFIG_CMD_CRAMFS=y
|
||||
CONFIG_CMD_EXT4_WRITE=y
|
||||
CONFIG_CMD_SQUASHFS=y
|
||||
CONFIG_CMD_MTDPARTS=y
|
||||
CONFIG_CMD_LOG=y
|
||||
CONFIG_CMD_STACKPROTECTOR_TEST=y
|
||||
CONFIG_MAC_PARTITION=y
|
||||
CONFIG_AMIGA_PARTITION=y
|
||||
|
||||
@ -27,13 +27,13 @@ def test_log_format(u_boot_console):
|
||||
|
||||
cons = u_boot_console
|
||||
with cons.log.section('format'):
|
||||
run_with_format('all', 'NOTICE.arch,file.c:123-func() msg')
|
||||
run_with_format('all', 'NOTICE.arch,file.c:123- func() msg')
|
||||
output = cons.run_command('log format')
|
||||
assert output == 'Log format: clFLfm'
|
||||
|
||||
run_with_format('fm', 'func() msg')
|
||||
run_with_format('clfm', 'NOTICE.arch,func() msg')
|
||||
run_with_format('FLfm', 'file.c:123-func() msg')
|
||||
run_with_format('fm', ' func() msg')
|
||||
run_with_format('clfm', 'NOTICE.arch, func() msg')
|
||||
run_with_format('FLfm', 'file.c:123- func() msg')
|
||||
run_with_format('lm', 'NOTICE. msg')
|
||||
run_with_format('m', 'msg')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user