From 5a2110adb92480cd0a92cc77e3c854bc0c6443db Mon Sep 17 00:00:00 2001 From: Aleksander Mistewicz Date: Tue, 21 Jun 2016 11:40:12 +0200 Subject: [PATCH] Clean workspace before use Change-Id: I736434bdf5ea48a0daa8b730f2610181e501efbe Signed-off-by: Aleksander Mistewicz --- tsp/jobs/img_test_common.sh | 1 + tsp/jobs/trigger_downloads.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/tsp/jobs/img_test_common.sh b/tsp/jobs/img_test_common.sh index 41331f1..b62771a 100755 --- a/tsp/jobs/img_test_common.sh +++ b/tsp/jobs/img_test_common.sh @@ -41,6 +41,7 @@ case "$TARGET" in DIFF_FILE="${DWN_WORKDIR}/diff-${TARGET}.report" ;; esac +rm -rf "${WORKDIR}" mkdir -p "${WORKDIR}" cd "${WORKDIR}" if $(check_diff "${DIFF_FILE}" "$1"); diff --git a/tsp/jobs/trigger_downloads.sh b/tsp/jobs/trigger_downloads.sh index 2f9636f..deed3d8 100755 --- a/tsp/jobs/trigger_downloads.sh +++ b/tsp/jobs/trigger_downloads.sh @@ -37,6 +37,7 @@ do for i in $(tsmaster | awk -v URL="$url" '$2 ~ "running" && $0 ~ URL {print $1}'); do kill `tsmaster -p $i`; done for target in "minnow32" "minnow64" "odroid" do + rm -rf "${WS_DOWNLOAD}/$i" mkdir -p "${WS_DOWNLOAD}/$i" cd "${WS_DOWNLOAD}/$i" # Download image for $target -- 2.7.4