]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: specify test path as argument ot runallone.sh
authorSage Weil <sage@newdream.net>
Wed, 2 Dec 2009 00:18:42 +0000 (16:18 -0800)
committerSage Weil <sage@newdream.net>
Wed, 2 Dec 2009 00:18:56 +0000 (16:18 -0800)
qa/runallonce.sh
qa/runonceph.sh

index 9d1dfca6bde27573fef7a8f89342ebc0e3cd3e95..cf2f411693f3db9b0bc01d7e5f251c3ad0260409 100755 (executable)
@@ -2,14 +2,14 @@
 
 set -e
 
-basedir=`pwd`
-testdir="${basedir}/testspace"
+basedir=`echo $0 | sed 's/[^/]*$//g'`.
+testdir="$1"
 
-mkdir -p $testdir
+test -d $testdir || ( echo "specify test dir" && exit 1 )
+cd $testdir
 
 for test in `cd $basedir && find workunits/* | grep .sh`
 do
-  cd $testdir
   echo "------ running test $test ------"
   mkdir -p $test
   pushd .
index 1e0aad5c829697b9f24ad1258d7f6548e1326892..15b38e99616eead6355a447252662fada5c159dd 100755 (executable)
@@ -3,4 +3,4 @@
 mkdir -p testspace
 cfuse testspace -m $1
 
-./runallonce.sh
\ No newline at end of file
+./runallonce.sh testspace
\ No newline at end of file