btrfs-progs: tests, add support for running commands under root
authorDavid Sterba <dsterba@suse.cz>
Wed, 14 Jan 2015 17:07:43 +0000 (18:07 +0100)
committerDavid Sterba <dsterba@suse.cz>
Wed, 14 Jan 2015 17:34:18 +0000 (18:34 +0100)
commit522e13d6d92f0083c8739f1137faa40aa98d7b03
tree97424fc0add33add97eeec4cba434cd615362957
parente6bc739148adf8cd8edd18de7c1e36aad31a6ac6
btrfs-progs: tests, add support for running commands under root

Most of the checks run fine without root, but some of them may need to
do a mount test or access the data. Add the support to selectively run
commands under root, hardcoded to sudo for now.

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