btrfs/150: add _scratch_dev_pool_get/put to run the test as expected
authorMisono, Tomohiro <misono.tomohiro@jp.fujitsu.com>
Tue, 20 Feb 2018 05:34:32 +0000 (14:34 +0900)
committerEryu Guan <eguan@redhat.com>
Tue, 20 Feb 2018 12:35:03 +0000 (20:35 +0800)
commitbf382b0e77307545ce9bfcfd19f17bd65c03cbb0
treea83104b064c9b0867b832cfd7764aba71a6800c4
parent5f73d8719d0410685387da56d50a559f5bd6a543
btrfs/150: add _scratch_dev_pool_get/put to run the test as expected

btrfs/150 uses RAID1 profile and make SCRATCH_DEV fail for test.
However, if SCRATCH_DEV_POOL consists more than two devices,
SCRATCH_DEV may not be used for RAID1 pair and the tests may not run
as expected.

Fix this by add _scratch_dev_pool_get/put like other tests (141, 143
etc.) do.

Signed-off-by: Tomohiro Misono <misono.tomohiro@jp.fujitsu.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/btrfs/150