btrfs-progs/tests/mkfs-tests
Marcos Paulo de Souza 2f8aac5375 btrfs-progs: tests: mkfs/018, fix check for truncate command failure
Commit 31f477ee ("btrfs-progs: mkfs-tests: skip test if truncate fails
with EFBIG") tried to detect a failure in truncate command by checking
the $? expecting it to be an errno, when it actually returns 0 or 1.

To fix this test just check if the command failed (returned 1) and look
for the output, skipping the test if the OS cannot create a 6E file.

Fixes: #241
Tested-by: Erhard Furtner <erhard_f@mailbox.org>
Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2020-05-04 20:48:35 +02:00
..
001-basic-profiles btrfs-progs: tests: add raid1c34 to basic mkfs tests 2019-11-22 19:09:50 +01:00
002-no-force-mixed-on-small-volume
003-mixed-with-wrong-nodesize
004-rootdir-keeps-size
005-long-device-name-for-ssd btrfs-progs: tests: skip tests if dmsetup is not available 2020-03-31 18:37:34 +02:00
006-partitioned-loopdev
007-mix-nodesize-sectorsize
008-sectorsize-nodesize-combination
009-special-files-for-rootdir
010-minimal-size
011-rootdir-create-file btrfs-progs: tests: mkfs/011: Fix path for rootdir 2020-01-09 14:27:09 +01:00
012-rootdir-no-shrink
013-reserved-1M-for-single
014-rootdir-inline-extent
015-fstree-uuid-otime
016-rootdir-bad-symbolic-link
017-small-backing-size-thin-provision-device btrfs-progs: tests: skip tests if dmsetup is not available 2020-03-31 18:37:34 +02:00
018-multidevice-overflow btrfs-progs: tests: mkfs/018, fix check for truncate command failure 2020-05-04 20:48:35 +02:00
019-basic-checksums-mkfs btrfs-progs: mkfs-tests: only check supported checksums 2020-03-03 19:58:54 +01:00
020-basic-checksums-mount btrfs-progs: mkfs-tests: only check supported checksums 2020-03-03 19:58:54 +01:00