Take trap statement inside the if clause 83/18183/1
authorUlas Kozat <ulas.kozat@gmail.com>
Mon, 8 Aug 2016 23:32:11 +0000 (16:32 -0700)
committerUlas Kozat <ulas.kozat@gmail.com>
Mon, 8 Aug 2016 23:32:11 +0000 (16:32 -0700)
Change-Id: If02f46e483c46be9169a0a541908c82705f6c908
Signed-off-by: Ulas Kozat <ulas.kozat@gmail.com>
tests/run_multinode.sh

index 4f4f075..43466b7 100755 (executable)
@@ -123,9 +123,8 @@ launch_domino() {
 
 echo "domino/tests/run_multinode.sh has been executed."
 
-trap cleanup EXIT
-
 if [ "$IS_IPandKEY_CONFIGURED" = "true" ]; then
+    trap cleanup EXIT
 
     cleanup
     prepare_testenv