diff options
Diffstat (limited to 'test/destroy_testbed.sh')
-rwxr-xr-x | test/destroy_testbed.sh | 22 |
1 files changed, 22 insertions, 0 deletions
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 |