]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: fix runallonce target dir verification
authorSage Weil <sage@newdream.net>
Fri, 11 Dec 2009 18:19:51 +0000 (10:19 -0800)
committerSage Weil <sage@newdream.net>
Fri, 11 Dec 2009 19:56:27 +0000 (11:56 -0800)
qa/runallonce.sh

index 19d7dfcc3d79bc113ca7acc428581f0e09e79fad..dcf745f2c244f94c927540aab705b35771e820ac 100755 (executable)
@@ -7,7 +7,7 @@ testdir="$1"
 
 [ ${basedir:0:1} == "." ] && basedir=`pwd`/${basedir:1}
 
-test -d $testdir || ( echo "specify test dir" && exit 1 )
+[ -z "$testdir" ] || [ ! -d "$testdir" ] && echo "specify test dir" && exit 1
 cd $testdir
 
 for test in `cd $basedir && find workunits/* | grep .sh`