summaryrefslogtreecommitdiff
path: root/qa/runallonce.sh
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2009-12-11 10:19:51 -0800
committerSage Weil <sage@newdream.net>2009-12-11 11:56:27 -0800
commit43ab6e519c48211ebbb7b73e2c8c48082c81ffe1 (patch)
treea1976baa4f3b779a4c1b27d977bd91f44a8f09d0 /qa/runallonce.sh
parent2611a57fdb64335b95f6f0c62bcfb0cd597a7c87 (diff)
downloadceph-43ab6e519c48211ebbb7b73e2c8c48082c81ffe1.tar.gz
qa: fix runallonce target dir verification
Diffstat (limited to 'qa/runallonce.sh')
-rwxr-xr-xqa/runallonce.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/qa/runallonce.sh b/qa/runallonce.sh
index 19d7dfcc3d7..dcf745f2c24 100755
--- a/qa/runallonce.sh
+++ b/qa/runallonce.sh
@@ -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`