]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
xfstest: move run_check to common.rc
authorDmitry Monakhov <dmonakhov@openvz.org>
Wed, 20 Feb 2013 10:42:11 +0000 (10:42 +0000)
committerRich Johnston <rjohnston@sgi.com>
Fri, 1 Mar 2013 16:09:08 +0000 (10:09 -0600)
Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Reviewed-by: Rich Johnston <rjohnston@sgi.com>
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
Move run_check to common.rc.

276
common.rc

diff --git a/276 b/276
index 082f943f1b11ffebe3a61c2d09f801e4ec11818d..c1ce8ace2054d6f0c2422995b213d3366ab43a45 100755 (executable)
--- 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
index 23e9be63b38a0b159b9ee018c147a8698c7f4b49..f5180fe4bb4bdfdedd2dbe80e48a017acc4b21be 100644 (file)
--- 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 ]