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

27 lines
428 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 cluster-service " '
kill -1 $(< ../sPID.txt) &&
rm ../sPID.txt
'
test_expect_success "Kill ipfs dameon " '
kill -1 $(< ../dPID.txt) &&
rm ../dPID.txt
'
test_expect_success "Remove config directories" '
rm -rf ../.test_ipfs &&
rm -rf ../.test_config
'
test_done