]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits/rbd: fixed missing error code on trap handler
authorJason Dillaman <dillaman@redhat.com>
Mon, 14 May 2018 15:11:08 +0000 (11:11 -0400)
committerJason Dillaman <dillaman@redhat.com>
Sat, 19 May 2018 12:17:51 +0000 (08:17 -0400)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 02e32fe45a3c6c922feeb09fd1e6b95f90278674)

qa/workunits/rbd/rbd_mirror_fsx_compare.sh

index 71d9a440097fba3bdae518b2277e70349566eeae..21eba1205cbff405bb3b92b5ff2181aaf831b643 100755 (executable)
@@ -7,7 +7,7 @@
 
 . $(dirname $0)/rbd_mirror_helpers.sh
 
-trap cleanup INT TERM EXIT
+trap 'cleanup $?' INT TERM EXIT
 
 setup_tempdir