aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYvan Roux <yvan.roux@linaro.org>2018-03-13 15:40:38 +0100
committerYvan Roux <yvan.roux@linaro.org>2018-03-13 15:40:38 +0100
commit7334342e8c2d896d432222bd1a42c17347b01fab (patch)
tree670abf4640905b18fe9e05da9b83bf2de7e1d079
parenteea1df68dc5ac695efd48c9a34f5fafa72bed6ae (diff)
tcwg-gnu-patch-benchmarking: Remove tmp dirs.
Change-Id: I84b2d9d20ea36568856d8af513ea37d202ec9c75
-rw-r--r--tcwg-gnu-patch-benchmarking.yaml3
1 files changed, 3 insertions, 0 deletions
diff --git a/tcwg-gnu-patch-benchmarking.yaml b/tcwg-gnu-patch-benchmarking.yaml
index fb3b8953d5..2738c6bc3f 100644
--- a/tcwg-gnu-patch-benchmarking.yaml
+++ b/tcwg-gnu-patch-benchmarking.yaml
@@ -194,6 +194,8 @@
# Hackish way to get tarball name from json api
TAR_REF_NAME=$(wget --quiet ${BF_URL_PREFIX}/${REFNUM}/${BF_URL_SUFIX}/api/json?pretty=true -O -| grep -P "fileName.*\"gcc-linaro-.*.tar.xz\"" | awk '{print $3}' | sed -e 's/[",]//g')
TAR_PATCH_NAME=$(wget --quiet ${BF_URL_PREFIX}/${PATCHNUM}/${BF_URL_SUFIX}/api/json?pretty=true -O -| grep -P "fileName.*\"gcc-linaro-.*.tar.xz\"" | awk '{print $3}' | sed -e 's/[",]//g')
+
+ rm -rf ref-tools
mkdir -p ref-tools
cd ref-tools
wget --progress=dot -e dotbytes=2M "${BF_URL_PREFIX}/${REFNUM}/${BF_URL_SUFIX}/artifact/artifacts/${TAR_REF_NAME}"
@@ -201,6 +203,7 @@
REF_CCPREFIX=$(readlink -f gcc-linaro-*/bin)/${target}-
cd ..
+ rm -rf patch-tools
mkdir -p patch-tools
cd patch-tools
wget --progress=dot -e dotbytes=2M "${BF_URL_PREFIX}/${PATCHNUM}/${BF_URL_SUFIX}/artifact/artifacts/${TAR_PATCH_NAME}"