From 23562cbaebd8ccbae0205f802b5cc6679d36dd46 Mon Sep 17 00:00:00 2001 From: Aleksander Mistewicz Date: Wed, 21 Dec 2016 10:30:53 +0100 Subject: [PATCH] Cleanup img_test_remote workspace after fail Change-Id: I17b175172467b7a0416165cd8b3c7ff7f5ec85e3 Signed-off-by: Aleksander Mistewicz --- tsp/jobs/common_prep_flash_conf.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tsp/jobs/common_prep_flash_conf.sh b/tsp/jobs/common_prep_flash_conf.sh index fabec78..8a62e95 100755 --- a/tsp/jobs/common_prep_flash_conf.sh +++ b/tsp/jobs/common_prep_flash_conf.sh @@ -76,6 +76,7 @@ retrigger() { tspwb -L PUBLISH sh "${TSP_DIR}/jobs/publish.sh" "$BUILD_NR" "$TARGET" exit 1 fi + ssh tl-runner "rm -rf \"${WORKDIR_REMOTE}\"; mkdir -p \"${WORKDIR_REMOTE}\"" || retrigger "ssh: remote ws cleanup failed" tsrun_target "${TARGET#headless-}" -L "RETRIGGERED_$(echo "$TARGET" | tr '[:lower:]' '[:upper:]')_PREPARE_FLASH_CONF" \ sh "${TSP_DIR}/jobs/common_prep_flash_conf.sh" "$BUILD_NR" "${TARGET}" "$((FAIL_CNT + 1))" # Update status in database -- 2.7.4