]> git.ipfire.org Git - thirdparty/util-linux.git/commit
tests: mkfs-endianness test use iflag=fullblock to fill block completely with string
authorMasami Ichikawa <masami256@gmail.com>
Thu, 3 Sep 2020 01:04:36 +0000 (10:04 +0900)
committerMasami Ichikawa <masami256@gmail.com>
Thu, 3 Sep 2020 01:41:18 +0000 (10:41 +0900)
commit7b54f05d6b7124c23bff3bc1b8310231c8a2e131
tree0e3bfc0e57296d448547d24823bf89e51a50d4c6
parent42fa381b9ddfb17a347d50923b2741fdd48bc300
tests: mkfs-endianness test use iflag=fullblock to fill block completely with string

When run mkfs-endianness test on lowend machine, sometimes dd didn't
fill block with string then test failed.
So, it's nice to add iflag=fullblock option to fill a block with
string read from stdin.

Tested on Raspberry Pi 3 B+(using 1core to simulate lowend environment)
 with iflag=fullblock option didn't get test failure.

Without iflag=fullblock option.
$ sudo sh -c 'for i in $(seq 1 500); do taskset -c 0 ./ts/cramfs/mkfs-endianness ;  done' | grep FAILED | wc -l
49

With iflag=fullblock option.
$ sudo sh -c 'for i in $(seq 1 500); do taskset -c 0 ./ts/cramfs/mkfs-endianness ;  done' | grep FAILED | wc -l
0

Signed-off-by: Masami Ichikawa <masami256@gmail.com>
tests/ts/cramfs/mkfs-endianness