hakehuang / zephyr

Primary GIT Repository for the Zephyr Project
http://zephyrproject.org/doc
Apache License 2.0
0 stars 0 forks source link

tests-ci :filesystem.littlefs.custom.lfs_dirops : zephyr-v2.6.0-436-gfbf5b8e8deb1: mimxrt1060_evk: test failed #7

Open hakehuang opened 3 years ago

hakehuang commented 3 years ago

Describe the bug filesystem.littlefs.custom.lfs_dirops test is failed on zephyr-v2.6.0-436-gfbf5b8e8deb1 on mimxrt1060_evk

see logs for details

To Reproduce

  1. scripts/twister --device-testing --device-serial /dev/ttyACM0 -p mimxrt1060_evk --testcase-root tests --sub-test filesystem.littlefs
  2. See error

Expected behavior test pass

Impact

Logs and console output

*** Booting Zephyr OS build zephyr-v2.6.0-436-gfbf5b8e8deb1  ***
Running test suite littlefs_test
===================================================================
START - test_util_path_init_base
PASS - test_util_path_init_base in 0.1 seconds
===================================================================
START - test_util_path_init_overrun
PASS - test_util_path_init_overrun in 0.1 seconds
===================================================================
START - test_util_path_init_extended
PASS - test_util_path_init_extended in 0.1 seconds
===================================================================
START - test_util_path_extend
PASS - test_util_path_extend in 0.1 seconds
===================================================================
START - test_util_path_extend_up
PASS - test_util_path_extend_up in 0.1 seconds
===================================================================
START - test_util_path_extend_overrun
PASS - test_util_path_extend_overrun in 0.1 seconds
===================================================================
START - test_lfs_basic
clearing partition /sml
Erasing 65536 (0x10000) bytes
Wiped flash area 4 for /sml
mounting /sml
I: LittleFS version 2.2, disk version 2.0
I: FS at IS25WP064:0x630000 is 16 0x1000-byte blocks with 512 cycle
I: sizes: rd 16 ; pr 16 ; ca 64 ; la 32
E: WEST_TOPDIR/modules/fs/littlefs/lfs.c:997: Corrupted dir pair at {0x0, 0x1}
W: can't mount (LFS -84); formatting
I: /sml mounted
checking clean statvfs of /sml
/sml: bsize 16 ; frsize 4096 ; blocks 16 ; bfree 14
creating and writing file
opening and verifying file
seek and tell in file
truncate in file
unlink hello
E: failed get file or dir stat (-2)
sync goodbye
sync size 64
CONFIG_FS_LITTLEFS_NUM_FILES=4
opening /sml/A
opening /sml/B
opening /sml/C
opening /sml/D
Close and unlink /sml/D
Close and unlink /sml/C
Close and unlink /sml/B
Close and unlink /sml/A
CONFIG_FS_LITTLEFS_NUM_DIRS=4
making and opening directory /sml/DA
making and opening directory /sml/DB
making and opening directory /sml/DC
making and opening directory /sml/DD
Close and rmdir /sml/DD
Close and rmdir /sml/DC
Close and rmdir /sml/DB
Close and rmdir /sml/DA
unmounting /sml
I: /sml unmounted
checking double unmount diagnoses
E: fs not mounted (mp == 0x800024d8)
mounting /sml
I: LittleFS version 2.2, disk version 2.0
I: FS at IS25WP064:0x630000 is 16 0x1000-byte blocks with 512 cycle
I: sizes: rd 16 ; pr 16 ; ca 64 ; la 32
I: /sml mounted
verify goodbye
I: /sml unmounted
clearing partition /med
Erasing 983040 (0xf0000) bytes
Wiped flash area 5 for /med
I: LittleFS version 2.2, disk version 2.0
I: FS at IS25WP064:0x640000 is 240 0x1000-byte blocks with 512 cycle
I: sizes: rd 64 ; pr 64 ; ca 256 ; la 64
E: WEST_TOPDIR/modules/fs/littlefs/lfs.c:997: Corrupted dir pair at {0x0, 0x1}
W: can't mount (LFS -84); formatting
I: /med mounted
/med: bsize 64 ; frsize 4096 ; blocks 240 ; bfree 238
I: /med unmounted
clearing partition /lrg
Erasing 3145728 (0x300000) bytes
Wiped flash area 2 for /lrg
I: LittleFS version 2.2, disk version 2.0
I: FS at IS25WP064:0x310000 is 96 0x8000-byte blocks with 512 cycle
I: sizes: rd 256 ; pr 256 ; ca 1024 ; la 128
E: WEST_TOPDIR/modules/fs/littlefs/lfs.c:997: Corrupted dir pair at {0x0, 0x1}
W: can't mount (LFS -84); formatting
I: /lrg mounted
/lrg: bsize 256 ; frsize 32768 ; blocks 96 ; bfree 94
I: /lrg unmounted
PASS - test_lfs_basic in 0.773 seconds
===================================================================
START - test_lfs_dirops
checking clean mount
Erasing 65536 (0x10000) bytes
Wiped flash area 4 for /sml
I: LittleFS version 2.2, disk version 2.0
I: FS at IS25WP064:0x630000 is 16 0x1000-byte blocks with 512 cycle
I: sizes: rd 16 ; pr 16 ; ca 64 ; la 32
E: WEST_TOPDIR/modules/fs/littlefs/lfs.c:997: Corrupted dir pair at {0x0, 0x1}
W: can't mount (LFS -84); formatting
I: /sml mounted
checking dir create unlink
E: failed to unlink path (-90)
building layout on /sml
before: bsize 16 ; frsize 4096 ; blocks 16 ; bfree 14
create at /sml/f1 with 1 from 0x01: 0
create at /sml/f2 with 100 from 0x02: 0
mkdir /sml/d1: 0
create at /sml/d1/d1f1 with 23 from 0x0b: 0
create at /sml/d1/d1f2 with 612 from 0x0c: 0
exit directory /sml/d1
create at /sml/f3 with 10000 from 0x03: 0
after: bsize 16 ; frsize 4096 ; blocks 16 ; bfree 7
checking layout
check /sml for 7 entries
/sml d1/ 0
check /sml/d1 for 2 entries
/sml/d1 d1f1 23
/sml/d1 d1f2 612
/sml/d1 found 2 entries, 0 foreign
/sml f1 1
/sml f2 100
/sml f3 10000
/sml found 4 entries, 0 foreign
verifying f1 1
verifying f2 100
verifying d1/ 0
verifying d1f1 23
verifying d1f2 612
verifying f3 10000
E: Invalid port number
E: Invalid port number
E: Invalid port number
E: Invalid port number
E: Invalid port number
E: Invalid port number
E: Invalid port number
E: Invalid port number
E: Invalid port number
E: Invalid port number
E: Invalid port number
E: Invalid port number
E: Invalid port number
E: Invalid port number
E: Invalid port number
E: Invalid port number
E: Invalid port number
E: Invalid port number
E: Invalid port number
E: WEST_TOPDIR/modules/fs/littlefs/lfs.c:997: Corrupted dir pair at {0x0, 0x1}
E: failed to create directory (-14)
Assertion failed at WEST_TOPDIR/zephyr/tests/subsys/fs/littlefs/src/test_lfs_dirops.c:208: check_rename: (fs_mkdir(root.path) not equal to 0)
rename mkdir failed
FAIL - test_lfs_dirops in 1.14 seconds
===================================================================
START - test_lfs_perf
clearing /sml for small 8x1K dflt write/read test
Erasing 65536 (0x10000) bytes
E: Invalid port number
Wiped flash area 4 for /sml
E: mount point already exists!!
Mount /sml failed: -16
Assertion failed at WEST_TOPDIR/zephyr/tests/subsys/fs/littlefs/src/test_lfs_perf.c:229: test_lfs_perf: (write_read("small 8x1K dflt", &testfs_small_mnt, 1024, 8) not equal to TC_PASS)
failed
FAIL - test_lfs_perf in 0.159 seconds
===================================================================
START - test_fs_open_flags_lfs
Clean /sml
Erasing 65536 (0x10000) bytes
E: Invalid port number
Wiped flash area 4 for /sml
Mount /sml
E: mount point already exists!!
Assertion failed at WEST_TOPDIR/zephyr/tests/subsys/fs/littlefs/src/testfs_open_flags.c:20: mount: (fs_mount(mp) not equal to 0)
Failed to mount partition
FAIL - test_fs_open_flags_lfs in 0.44 seconds
===================================================================
START - test_fs_mount_flags
Clean /sml
Erasing 65536 (0x10000) bytes
E: Invalid port number
Wiped flash area 4 for /sml
E: mount point already exists!!
Mount unformatted with FS_MOUNT_FLAG_NO_FORMAT set
E: mount point already exists!!
Mount unformatted with FS_MOUNT_FLAG_READ_ONLY set
E: mount point already exists!!
Mount again to format volume
Assertion failed at WEST_TOPDIR/zephyr/tests/subsys/fs/littlefs/src/testfs_mount_flags.c:48: test_fs_mount_flags: (ret not equal to 0)
Expected success
FAIL - test_fs_mount_flags in 0.66 seconds
===================================================================
Test suite littlefs_test failed.
===================================================================
PROJECT EXECUTION FAILED

Environment (please complete the following information):

hakehuang commented 3 years ago

tests-ci :filesystem.littlefs.custom.lfs_perf : zephyr-v2.6.0-436-gfbf5b8e8deb1: mimxrt1060_evk: test failed

hakehuang commented 3 years ago

tests-ci :filesystem.littlefs.custom.fs_open_flags_lfs : zephyr-v2.6.0-436-gfbf5b8e8deb1: mimxrt1060_evk: test failed

hakehuang commented 3 years ago

tests-ci :filesystem.littlefs.custom.fs_mount_flags : zephyr-v2.6.0-436-gfbf5b8e8deb1: mimxrt1060_evk: test failed