From: Amir Goldstein Date: Tue, 28 May 2019 12:08:47 +0000 (+0300) Subject: common/rc: fix _repair_scratch_fs error reporting X-Git-Tag: v2022.05.01~1143 X-Git-Url: http://git.apps.os.sepia.ceph.com/?p=xfstests-dev.git;a=commitdiff_plain;h=84fbcec4ec17d0ee2676d99d2c13ecc6c8dcf1c6 common/rc: fix _repair_scratch_fs error reporting _dump_err2() helper was introduced over two years ago and it broke the error reporting from _repair_scratch_fs. Every test that runs: _repair_scratch_fs >> $seqres.full and expect to fail if anything is written to stderr is not working as intended. Reported-by: zhangyi (F) Signed-off-by: Amir Goldstein Reviewed-by: zhangyi (F) Signed-off-by: Eryu Guan --- diff --git a/common/rc b/common/rc index 17b89d5d..e78e0920 100644 --- a/common/rc +++ b/common/rc @@ -98,7 +98,7 @@ _dump_err_cont() _dump_err2() { _err_msg="$*" - >2& echo "$_err_msg" + >&2 echo "$_err_msg" } _log_err()