summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYang (Gabriel) Yu <Gabriel.yuyang@huawei.com>2019-04-08 10:57:28 +0800
committerYang (Gabriel) Yu <Gabriel.yuyang@huawei.com>2019-04-08 10:57:28 +0800
commit99e16009ace4d99b552d1442898be9100946a7c3 (patch)
treeedda7df0cf1690ca5d062eb5e72c4d6b8c170efa
parent80edaf3c201bec85fe8a403e03b68899c08df3bb (diff)
bug-fix: add tmp files clean-up for test scheduler
If the dir of tmp_files is not deleted, it will cause error when installing scheduler again. Change-Id: I3ec51d607effd11391fe53e62fa61a6313cc4dda Signed-off-by: Yang (Gabriel) Yu <Gabriel.yuyang@huawei.com>
-rw-r--r--test-scheduler/docker/clean.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/test-scheduler/docker/clean.sh b/test-scheduler/docker/clean.sh
index cab7a1b0..bcb4d89f 100644
--- a/test-scheduler/docker/clean.sh
+++ b/test-scheduler/docker/clean.sh
@@ -7,6 +7,8 @@
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
+basepath=$(cd `dirname $0`; pwd)
+
sudo docker rm -f t-scheduler-server \
t-scheduler-ui \
conductor_conductor-server_1 \
@@ -29,4 +31,6 @@ sudo docker rmi x-lab/test-scheduler:server \
nginx:latest \
java:latest \
+sudo rm -rf ${basepath}/plugin/tmp_files/
+
echo "--- Clean Finished ---"