From bb949015a8d3fcf4a5c105b1edd74f27b848a806 Mon Sep 17 00:00:00 2001 From: Dmitry Monakhov Date: Wed, 20 Feb 2013 10:42:11 +0000 Subject: [PATCH] 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. --- 276 | 6 ------ common.rc | 6 ++++++ 2 files changed, 6 insertions(+), 6 deletions(-) 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 ] -- 2.47.3