ipfs-cluster/test/sharness/t0100-cleanup.sh

32 lines
630 B
Bash
Executable File

#!/bin/sh
#
# MIT Licensed
#
test_description="Cleanup state from tests (kill ipfs daemon)"
. lib/test-lib.sh
#test_expect_success "Kill ipfs daemon" '
# ps | grep "ipfs daemon" | grep -v "grep" > daemon_ps.txt &&
# sed -i '''' ''s/^ *//'' daemon_ps.txt &&
# awk ''{print$1}'' daemon_ps.txt > daemon_pid.txt &&
# kill -9 $(< daemon_pid.txt)
#'
test_expect_success "Kill cluster-service " '
kill -1 $(< ../sPID.txt)
'
test_expect_success "Kill ipfs dameon " '
kill -1 $(< ../dPID.txt)
'
test_expect_success "Remove config directories" '
rm -rf ../test_ipfs &&
rm -rf ../test_config
'
test_done