]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test: Allow directory specified to run-standalone.sh 24018/head
authorDavid Zafman <dzafman@redhat.com>
Sun, 26 Aug 2018 17:18:21 +0000 (10:18 -0700)
committerDavid Zafman <dzafman@redhat.com>
Mon, 10 Sep 2018 19:23:11 +0000 (12:23 -0700)
Fixes: http://tracker.ceph.com/issues/35912
Example:
cd build
../qa/run-standalone.sh scrub

Signed-off-by: David Zafman <dzafman@redhat.com>
qa/run-standalone.sh

index f7102bf59fd3fede9b5fee905e96dbbd4ca22590..88a4e770c0b749955943af6d98409ab5495b81ad 100755 (executable)
@@ -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