aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2018-03-26 08:25:30 +0200
committerTibor Frank <tifrank@cisco.com>2018-03-26 08:25:30 +0200
commit806d2bf874f34d80e92c700652f226359402b1e8 (patch)
tree7725f581f49c84bcca336611bf582fc5f29b86b6 /resources/tools
parent0354ec6ac7b0c633a9f4c7007c0cba43bc05acbd (diff)
CSIT-919: Jenkons job
- return correct return value Change-Id: I761593b90336ef3926e157c068982713ea3fe71f Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools')
-rwxr-xr-xresources/tools/presentation/run_cpta.sh8
1 files changed, 3 insertions, 5 deletions
diff --git a/resources/tools/presentation/run_cpta.sh b/resources/tools/presentation/run_cpta.sh
index 6ba962d778..081becfcbc 100755
--- a/resources/tools/presentation/run_cpta.sh
+++ b/resources/tools/presentation/run_cpta.sh
@@ -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}