From 231beb5c3fc50f40e31b9e00237c67f267188057 Mon Sep 17 00:00:00 2001 From: KatolaZ Date: Wed, 9 Aug 2017 09:53:34 +0100 Subject: preliminary testbed --- test/destroy_testbed.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 test/destroy_testbed.sh (limited to 'test/destroy_testbed.sh') diff --git a/test/destroy_testbed.sh b/test/destroy_testbed.sh new file mode 100755 index 0000000..afae2e3 --- /dev/null +++ b/test/destroy_testbed.sh @@ -0,0 +1,22 @@ +#!/bin/sh + + +. ./scorsh_functions + +### kill scroshd, if it's running +if [ -f "${SCORSH_APP}/scorshd.pid" ]; then + kill -9 $(cat "${SCORSH_APP}/scorshd.pid") +fi + +### remove all the folders +rm -rf ${SCORSH_REPO} +rm -rf ${SCORSH_APP} +rm -rf ${REMOTE_REPO} +rm -rf ${LOCAL_REPO} + +check "[ ! -d \"${SCORSH_REPO}\" ]" $0 "remove_scorsh_repo" +check "[ ! -d \"${SCORSH_APP}\" ]" $0 "remove_scorsh_app" +check "[ ! -d \"${REMOTE_REPO}\" ]" $0 "remove_remote_repo" +check "[ ! -d \"${LOCAL_REPO}\" ]" $0 "remove_local_repo" + +return_results -- cgit v1.2.3