From: Sage Weil Date: Thu, 11 Feb 2010 18:36:45 +0000 (-0800) Subject: qa: fix up runallonce.sh X-Git-Tag: v0.19~49 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b509371e1e9d664a5a2f7eaf82633a8dfadee178;p=ceph.git qa: fix up runallonce.sh --- diff --git a/qa/runallonce.sh b/qa/runallonce.sh index 0932930a6545..5dfdb244d905 100755 --- a/qa/runallonce.sh +++ b/qa/runallonce.sh @@ -10,14 +10,14 @@ testdir="$1" [ -z "$testdir" ] || [ ! -d "$testdir" ] && echo "specify test dir" && exit 1 cd $testdir -for test in `cd $basedir && find workunits/* | grep .sh` +for test in `cd $basedir/workunits && ls | grep .sh` do echo "------ running test $test ------" mkdir -p $test - mkdir -p ${basedir}/logs + test -d ${basedir}/logs || mkdir -p ${basedir}/logs test -e ${basedir}/logs/${test}.log && rm ${basedir}/logs/${test}.log pushd . cd $test - ${basedir}/${test} 2>&1 | tee ${basedir}/logs/${test}.log + ${basedir}/workunits/${test} 2>&1 | tee ${basedir}/logs/${test}.log popd done