From: Dmitry Monakhov Date: Wed, 20 Feb 2013 10:42:11 +0000 (+0000) Subject: xfstest: move run_check to common.rc X-Git-Tag: v2022.05.01~3536 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=bb949015a8d3fcf4a5c105b1edd74f27b848a806;p=xfstests-dev.git xfstest: move run_check to common.rc Signed-off-by: Dmitry Monakhov Reviewed-by: Rich Johnston Signed-off-by: Rich Johnston Move run_check to common.rc. --- diff --git a/276 b/276 index 082f943f..c1ce8ace 100755 --- a/276 +++ b/276 @@ -165,12 +165,6 @@ _btrfs_inspect_check() return $ret } -run_check() -{ - echo "# $@" >> $seq.full 2>&1 - "$@" >> $seq.full 2>&1 || _fail "failed: '$@'" -} - workout() { fsz=$1 diff --git a/common.rc b/common.rc index 23e9be63..f5180fe4 100644 --- a/common.rc +++ b/common.rc @@ -1874,6 +1874,12 @@ _scale_fsstress_args() echo $args } +run_check() +{ + echo "# $@" >> $seq.full 2>&1 + "$@" >> $seq.full 2>&1 || _fail "failed: '$@'" +} + ################################################################################ if [ "$iam" != new -a "$iam" != bench ]