btrfs: add function _require_fssum()
authorFilipe David Borba Manana <fdmanana@gmail.com>
Thu, 13 Mar 2014 04:17:44 +0000 (15:17 +1100)
committerDave Chinner <david@fromorbit.com>
Thu, 13 Mar 2014 04:17:44 +0000 (15:17 +1100)
commit2dd0dbe3f8ce87ce78b30702261f7e8ecf2f8106
tree7eaba3c74fe1cd98b6c715b2b107913523de9eaa
parentb50473c849d45b7b52abf0fd7c9b5c2d5e592c57
btrfs: add function _require_fssum()

To avoid repeating detection of fssum presence in many btrfs tests, as
suggested by Dave Chinner.

Also exported the variable "here" from the main control script, to avoid
repeating its declaration in every single testcase file. Also removed the
declaration of "here" from btrfs test cases that require the fssum program
only. Removing it from all other test cases will be a separate change.

Signed-off-by: Filipe David Borba Manana <fdmanana@gmail.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
check
common/rc
tests/btrfs/007
tests/btrfs/016 [changed mode: 0644->0755]
tests/btrfs/030
tests/btrfs/038
tests/btrfs/039
tests/btrfs/040