btrfs-progs: tests: enhance common umount helper to take optional paths
authorDavid Sterba <dsterba@suse.com>
Tue, 30 Jan 2018 17:51:25 +0000 (18:51 +0100)
committerDavid Sterba <dsterba@suse.com>
Wed, 31 Jan 2018 14:14:03 +0000 (15:14 +0100)
commit7de5fafc646514c3b72e9baacf2de9180e7f392e
tree562d7f4fd023db5b87c84aceb384919221060f33
parentcda595afa3cfabae2be30af9b8b08f2af3c31437
btrfs-progs: tests: enhance common umount helper to take optional paths

The run_check_umount_test_dev umounts the TEST_DEV and also optionally
uses the arguments but this would not work as expected if the TEST_DEV
is not a vald path for umount (eg. a restored image).

Update the helper so it tries to umount all paths, or fallback to
TEST_DEV to keep the current behaviour.

Signed-off-by: David Sterba <dsterba@suse.com>
tests/common