btrfs-progs/tests/cli-tests
Qu Wenruo e3a24cf11a btrfs-progs: tests: fix cli/017 test case failure
[BUG]
Test case cli/017 fails with the following errors:

    [TEST]   cli-tests.sh
    [TEST/cli]   017-fi-show-missing
  didn't find exact missing device
  test failed for case 017-fi-show-missing

[CAUSE]
After kernel commit cb3e217bdb39 ("btrfs: use btrfs_dev_name() helper to
handle missing devices better"), all dev info ioctl call on missing
device would only return "<missing disk>" for its path.

Thus "btrfs filesystem show" would never report detailed device path for
missing disks.

[FIX]
Instead of relying on the device path, change the check to rely on devid
instead.

Now cli/017 can properly pass.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2023-02-28 20:11:23 +01:00
..
001-btrfs
002-balance-full-no-filters
003-fi-resize-args btrfs-progs: tests: cli/003 verify that the path is not an image 2021-02-19 15:24:42 +01:00
004-send-parent-multi-subvol btrfs-progs: tests: use _mktemp for creating files 2022-10-11 09:06:12 +02:00
005-qgroup-show
006-qgroup-show-sync
007-check-force
008-subvolume-get-set-default
009-btrfstune
010-subvol-show-qgroup
011-defrag-recursion
012-defrag-recursion btrfs-progs: tests: use _mktemp_local for temporary files 2022-10-11 09:06:13 +02:00
013-subvolume-delete-by-id btrfs-progs: tests: check if subvolume delete by id is supported 2020-03-31 18:37:36 +02:00
014-multiple-profiles-warning btrfs-progs: tests: skip cli-tests/014 in travis 2020-08-31 17:01:03 +02:00
015-defrag-compress btrfs-progs: tests: test options for defrag -c 2021-09-20 11:46:24 +02:00
016-btrfs-fi-usage btrfs-progs: tests: test for btrfs fi usage output 2021-11-25 15:24:15 +01:00
017-fi-show-missing btrfs-progs: tests: fix cli/017 test case failure 2023-02-28 20:11:23 +01:00