diff options
author | Sage Weil <sage@newdream.net> | 2009-12-02 01:18:42 +0100 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2009-12-02 01:18:56 +0100 |
commit | 83e2b9cc79e8cafdaaa74d42ab6b833b7818f1d2 (patch) | |
tree | a66b27c8b1fa360734534f838594646f046e344b /qa/runallonce.sh | |
parent | config: preserve argv[0] if appropriate (diff) | |
download | ceph-83e2b9cc79e8cafdaaa74d42ab6b833b7818f1d2.tar.xz ceph-83e2b9cc79e8cafdaaa74d42ab6b833b7818f1d2.zip |
qa: specify test path as argument ot runallone.sh
Diffstat (limited to 'qa/runallonce.sh')
-rwxr-xr-x | qa/runallonce.sh | 8 |
1 files changed, 4 insertions, 4 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 . |