aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/sdc/kill_containers_and_remove_dataFolders.sh
diff options
context:
space:
mode:
authorkaihlavi <l.kaihlavirt@partner.samsung.com>2019-06-11 10:47:17 +0300
committerkaihlavi <l.kaihlavirt@partner.samsung.com>2019-06-25 15:16:10 +0300
commitd8547ef9e40448519fc48c1e1b8498cc8ef87b33 (patch)
treeb7026e9b2f4405a5f80fe5011d966bb5febcf0ab /scripts/sdc/kill_containers_and_remove_dataFolders.sh
parent2d51f2b775dc4800d41faaf3faff36b9ace11894 (diff)
Remove data folder in CSIT teardown
- Remove data folder by force as sudo in kill script - Fix script name output (also in vid's corresponding script) Issue-ID: SDC-2362 Signed-off-by: kaihlavi <l.kaihlavirt@partner.samsung.com> Change-Id: I91f031c74e7ae05ec4645677ec8c07b34ed28c0b
Diffstat (limited to 'scripts/sdc/kill_containers_and_remove_dataFolders.sh')
-rw-r--r--scripts/sdc/kill_containers_and_remove_dataFolders.sh13
1 files changed, 5 insertions, 8 deletions
diff --git a/scripts/sdc/kill_containers_and_remove_dataFolders.sh b/scripts/sdc/kill_containers_and_remove_dataFolders.sh
index f231a262..6cc47561 100644
--- a/scripts/sdc/kill_containers_and_remove_dataFolders.sh
+++ b/scripts/sdc/kill_containers_and_remove_dataFolders.sh
@@ -15,9 +15,10 @@
# limitations under the License.
#
# Modifications copyright (c) 2017 AT&T Intellectual Property
+# Modifications copyright (c) 2019 Samsung Electronics Co., Ltd.
#
-echo "This is ${WORKSPACE}/scripts/sdc/kill_and_remove_dataFolder.sh"
+echo "This is ${WORKSPACE}/scripts/sdc/kill_containers_and_remove_dataFolders.sh"
# copy logs to archive
@@ -27,13 +28,9 @@ cp -rf ${WORKSPACE}/data/logs/*tests*/target/*.xml ${WORKSPACE}/archives/
ls -Rt ${WORKSPACE}/archives/
-#kill and remove all sdc dockers
+# kill and remove all sdc dockers
docker stop $(docker ps -a -q --filter="name=sdc")
docker rm $(docker ps -a -q --filter="name=sdc")
-
-#delete data folder
-
-#rm -rf ${WORKSPACE}/data/*
-
-
+# delete data folder
+sudo rm -rf ${WORKSPACE}/data/*