From: David Zafman Date: Sun, 26 Aug 2018 17:18:21 +0000 (-0700) Subject: test: Allow directory specified to run-standalone.sh X-Git-Tag: v14.0.1~304^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=050a4bb20e4bb7b329e9ffe9fab9c079125d9188;p=ceph.git test: Allow directory specified to run-standalone.sh Fixes: http://tracker.ceph.com/issues/35912 Example: cd build ../qa/run-standalone.sh scrub Signed-off-by: David Zafman --- diff --git a/qa/run-standalone.sh b/qa/run-standalone.sh index f7102bf59fd3..88a4e770c0b7 100755 --- a/qa/run-standalone.sh +++ b/qa/run-standalone.sh @@ -107,12 +107,12 @@ do found=false for c in "${!select[@]}" do - # Get command and any arguments of subset of tests ro tun + # Get command and any arguments of subset of tests to run allargs="${select[$c]}" arg1=$(echo "$allargs" | cut --delimiter " " --field 1) # Get user args for this selection for use below userargs="$(echo $allargs | cut -s --delimiter " " --field 2-)" - if [[ "$arg1" = $(basename $f) ]]; then + if [[ "$arg1" = $(basename $f) ]] || [[ "$arg1" = $(dirname $f) ]]; then found=true break fi