diff options
-rwxr-xr-x | qa/runallonce.sh | 8 | ||||
-rwxr-xr-x | qa/runonceph.sh | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/qa/runallonce.sh b/qa/runallonce.sh index 9d1dfca6bde..cf2f411693f 100755 --- a/qa/runallonce.sh +++ b/qa/runallonce.sh @@ -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 . diff --git a/qa/runonceph.sh b/qa/runonceph.sh index 1e0aad5c829..15b38e99616 100755 --- a/qa/runonceph.sh +++ b/qa/runonceph.sh @@ -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 |