X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Ftools%2Fpresentation%2Frun_cpta.sh;h=081becfcbc924ef2fd1cd44e9f9f1daadfbc6250;hp=6ba962d778fca8ab93d81ec69d207d49ffbb09ec;hb=806d2bf874f34d80e92c700652f226359402b1e8;hpb=0354ec6ac7b0c633a9f4c7007c0cba43bc05acbd 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}