]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
xfstests: Fix hang when mkfs.btrfs isn't present
authorEric Sandeen <sandeen@sandeen.net>
Tue, 5 Mar 2013 22:41:54 +0000 (22:41 +0000)
committerRich Johnston <rjohnston@sgi.com>
Wed, 6 Mar 2013 12:59:32 +0000 (06:59 -0600)
commit52f4953ac4a377f9f7fc870d2a81f30c3e5d3c7f
tree3e84a042f2a7e39525cecfbf815a49433603e54e
parent6f000a96dc21c81b167038f3bccc0dd15ecbb313
xfstests: Fix hang when mkfs.btrfs isn't present

My earlier patch (xfstests: handle new mkfs.btrfs -f option cleanly)
had a flaw in that if set_prog_path mkfs.btrfs returns nothing,
the grep will hang.

Test for that case to avoid it, and just return the empty string
in that case.

Reported-by: Rich Johnston <rjohnston@sgi.com>
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Rich Johnston <rjohnston@sgi.com>
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
common.config