CSIT-919: Jenkons job 52/11352/1
authorTibor Frank <tifrank@cisco.com>
Mon, 26 Mar 2018 06:25:30 +0000 (08:25 +0200)
committerTibor Frank <tifrank@cisco.com>
Mon, 26 Mar 2018 06:25:30 +0000 (08:25 +0200)
 - return correct return value

Change-Id: I761593b90336ef3926e157c068982713ea3fe71f
Signed-off-by: Tibor Frank <tifrank@cisco.com>
resources/tools/presentation/run_cpta.sh

index 6ba962d..081becf 100755 (executable)
@@ -12,10 +12,6 @@ sudo apt-get -y update
 sudo apt-get -y install libxml2 libxml2-dev libxslt-dev build-essential \
     zlib1g-dev unzip
 
-# Clean-up when finished
-trap 'rm -rf ${DIR[WORKING]}; exit' EXIT
-trap 'rm -rf ${DIR[WORKING]}; exit' ERR
-
 # Create working directories
 mkdir ${DIR[WORKING]}
 
@@ -32,7 +28,9 @@ python pal.py \
     --specification specification_CPTA.yaml \
     --logging INFO \
     --force
-
 RETURN_STATUS=$?
+
+rm -rf ${DIR[WORKING]}
+
 echo ${RETURN_STATUS}
 exit ${RETURN_STATUS}

©2016 FD.io a Linux Foundation Collaborative Project. All Rights Reserved.
Linux Foundation is a registered trademark of The Linux Foundation. Linux is a registered trademark of Linus Torvalds.
Please see our privacy policy and terms of use.