]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: Testing of ceph-helpers.sh, teardown on fail to dump logs, save cores
authorDavid Zafman <dzafman@redhat.com>
Wed, 9 Aug 2017 14:19:36 +0000 (07:19 -0700)
committerDavid Zafman <dzafman@redhat.com>
Thu, 10 Aug 2017 19:37:05 +0000 (12:37 -0700)
Signed-off-by: David Zafman <dzafman@redhat.com>
qa/standalone/ceph-helpers.sh

index 5325ec7c2961e2fbf3e1786d31b1dab9a134fd75..16996b377ec27e9cfc373506bc87d1537ccf402f 100755 (executable)
@@ -1904,7 +1904,10 @@ function run_tests() {
     local dir=td/ceph-helpers
 
     for func in $funcs ; do
-        $func $dir || return 1
+        if ! $func $dir; then
+            teardown $dir 1
+            return 1
+        fi
     done
 }