btrfs-progs/tests/misc-tests
Su Yue 82cb226f51 btrfs-progs: misc-tests/029: exit manually after run_mayfail()
Since the commmit 8dd3e5dc2d
("btrfs-progs: tests: fix misc-tests/029 to run on NFS") added the
compatibility of NFS, it called run_mayfail() in the last of the test.

However, run_mayfail() always return the original code. If the test
case is not running on NFS, the last `run_mayfail rmdir "$SUBVOL_MNT"`
will fail with return value 1 then the test fails:
================================================================
====== RUN MAYFAIL rmdir btrfs-progs/tests/misc-tests/029-send-p-different-mountpoints/subvol_mnt
rmdir: failed to remove 'btrfs-progs/tests/misc-tests/029-send-p-different-mountpoints/subvol_mnt': No such file or director
failed (ignored, ret=1): rmdir btrfs-progs/tests/misc-tests/029-send-p-different-mountpoints/subvol_mnt
test failed for case 029-send-p-different-mountpoints
=================================================================

Every instrument in this script handles its error well, so do exit 0
manually in the last.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=202645
Fixes: 8dd3e5dc2d ("btrfs-progs: tests: fix misc-tests/029 to run on NFS")
Signed-off-by: Su Yue <Damenly_Su@gmx.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2019-07-03 20:49:04 +02:00
..
001-btrfstune-features btrfs-progs: switch to mkfs helper 2019-06-05 20:27:32 +02:00
002-uuid-rewrite btrfs-progs: switch to mkfs helper 2019-06-05 20:27:32 +02:00
003-zero-log btrfs-progs: switch to mkfs helper 2019-06-05 20:27:32 +02:00
004-shrink-fs btrfs-progs: tests: add shell quotes to misc test scripts 2018-03-30 22:15:55 +02:00
005-convert-progress-thread-crash btrfs-progs: tests: add shell quotes to misc test scripts 2018-03-30 22:15:55 +02:00
006-image-on-missing-device btrfs-progs: tests: fix typos in test comments 2018-11-26 17:53:43 +01:00
007-subvolume-sync btrfs-progs: switch to mkfs helper 2019-06-05 20:27:32 +02:00
008-leaf-crossing-stripes btrfs-progs: tests: add shell quotes to misc test scripts 2018-03-30 22:15:55 +02:00
009-subvolume-sync-must-wait btrfs-progs: switch to mkfs helper 2019-06-05 20:27:32 +02:00
010-convert-delete-ext2-subvol btrfs-progs: tests: add shell quotes to misc test scripts 2018-03-30 22:15:55 +02:00
011-delete-missing-device btrfs-progs: switch to mkfs helper 2019-06-05 20:27:32 +02:00
012-find-root-no-result btrfs-progs: tests: add shell quotes to misc test scripts 2018-03-30 22:15:55 +02:00
013-subvolume-sync-crash btrfs-progs: switch to mkfs helper 2019-06-05 20:27:32 +02:00
014-filesystem-label btrfs-progs: switch to mkfs helper 2019-06-05 20:27:32 +02:00
015-dump-super-garbage btrfs-progs: tests: add shell quotes to misc test scripts 2018-03-30 22:15:55 +02:00
016-send-clone-src btrfs-progs: switch to mkfs helper 2019-06-05 20:27:32 +02:00
017-recv-stream-malformatted btrfs-progs: switch to mkfs helper 2019-06-05 20:27:32 +02:00
018-recv-end-of-stream btrfs-progs: switch to mkfs helper 2019-06-05 20:27:32 +02:00
019-receive-clones-on-mounted-subvol btrfs-progs: switch to mkfs helper 2019-06-05 20:27:32 +02:00
020-fix-superblock-corruption btrfs-progs: switch to mkfs helper 2019-06-05 20:27:32 +02:00
021-image-multi-devices btrfs-progs: misc-tests/021: Do extra btrfs check before mounting 2018-12-05 15:47:24 +01:00
022-filesystem-du-on-empty-subvol btrfs-progs: switch to mkfs helper 2019-06-05 20:27:32 +02:00
023-device-usage-with-missing-device btrfs-progs: tests: add shell quotes to misc test scripts 2018-03-30 22:15:55 +02:00
024-inspect-internal-rootid btrfs-progs: switch to mkfs helper 2019-06-05 20:27:32 +02:00
025-zstd-compression btrfs-progs: introduce TEST_TOP and INTERNAL_BIN for tests 2018-02-13 15:41:32 +01:00
026-image-non-printable-chars btrfs-progs: switch to mkfs helper 2019-06-05 20:27:32 +02:00
027-subvol-list-deleted-toplevel btrfs-progs: switch to mkfs helper 2019-06-05 20:27:32 +02:00
028-superblock-recover btrfs-progs: switch to mkfs helper 2019-06-05 20:27:32 +02:00
029-send-p-different-mountpoints btrfs-progs: misc-tests/029: exit manually after run_mayfail() 2019-07-03 20:49:04 +02:00
030-missing-device-image btrfs-progs: tests: Test if btrfs-image can handle RAID1 missing device 2018-03-30 22:15:55 +02:00
031-qgroup-parent-child-relation btrfs-progs: switch to mkfs helper 2019-06-05 20:27:32 +02:00
032-bad-item-ptr btrfs-progs: tests: Add test case for dump-tree on heavily corrupted leaf 2018-06-07 16:37:32 +02:00
033-filename-length-limit btrfs-progs: switch to mkfs helper 2019-06-05 20:27:32 +02:00
034-metadata-uuid btrfs-progs: test: cleanup misc-tests/034 2019-06-05 20:27:32 +02:00
035-receive-common-mount-point-prefix btrfs-progs: tests: disable misc-tests/035-receive-common-mount-point-prefix 2019-05-17 13:02:22 +02:00
036-receive-dump-invalid-stream btrfs-progs: tests: stream dump and max_error counts 2019-05-17 12:32:38 +02:00
037-fi-show-on-new-file btrfs-progs: tests: Test fs on image files is correctly recognised 2019-06-05 20:27:31 +02:00