]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
fstests: fix cleanup of test btrfs/003
authorFilipe Manana <fdmanana@suse.com>
Mon, 11 Jan 2016 04:07:20 +0000 (15:07 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 11 Jan 2016 04:07:20 +0000 (15:07 +1100)
commitcc2dce716f2734dbf82c76c4bcd626d0f606e662
tree0681d9412c2e656e8a4039519fb9d987ee50bf10
parenta6630c04ac17a7d98a346519d1ce48e6d8022eb8
fstests: fix cleanup of test btrfs/003

If the test fails after removing a device and before adding it back, it
attempts to add back the device in its _cleanup() function. However this
is broken because the device identifier is stored in a variable local to
the function _test_replace() and not in a global variable. So make the
variable global instead of local.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/btrfs/003