]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: fix up runallonce.sh
authorSage Weil <sage@newdream.net>
Thu, 11 Feb 2010 18:36:45 +0000 (10:36 -0800)
committerSage Weil <sage@newdream.net>
Thu, 11 Feb 2010 18:36:45 +0000 (10:36 -0800)
qa/runallonce.sh

index 0932930a654584723a9c88540337909eeb51531a..5dfdb244d905fcce4595ca9a36f50379dc4746f2 100755 (executable)
@@ -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