btrfs-progs: test: fix run_check_stdout() call _fail()
authorMisono, Tomohiro <misono.tomohiro@jp.fujitsu.com>
Tue, 5 Sep 2017 05:49:02 +0000 (14:49 +0900)
committerDavid Sterba <dsterba@suse.com>
Fri, 8 Sep 2017 14:15:05 +0000 (16:15 +0200)
commit02e9bb9f236e28801a7a2cb66c82ea9d04260018
tree541d99bcd5db6767767fdeaccc7959ec4a614262
parentdbe96ecd3f38d37ee0793297e7dbfb699b4a5aec
btrfs-progs: test: fix run_check_stdout() call _fail()

run_check_stdout() uses "... | tee ... || _fail".  However, since tee
won't fail, _fail() is not called even if first command fails.

Fix this by checking PIPESTATUS in the end.

Signed-off-by: Tomohiro Misono <misono.tomohiro@jp.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
tests/common