fix(test-network): ignore the error output when killing CCAAS containers

Signed-off-by: Tony Wu <tonywu3027@me.com>
This commit is contained in:
Tony Wu 2023-06-30 03:15:11 +01:00
parent 7671bdd7c6
commit 8544454892

View file

@ -38,6 +38,7 @@ function clearContainers() {
infoln "Removing remaining containers"
${CONTAINER_CLI} rm -f $(${CONTAINER_CLI} ps -aq --filter label=service=hyperledger-fabric) 2>/dev/null || true
${CONTAINER_CLI} rm -f $(${CONTAINER_CLI} ps -aq --filter name='dev-peer*') 2>/dev/null || true
${CONTAINER_CLI} kill "$(${CONTAINER_CLI} ps -q --filter name=ccaas)" 2>/dev/null || true
}
# Delete any images that were generated as a part of this setup
@ -345,8 +346,6 @@ function networkDown() {
clearContainers
#Cleanup images
removeUnwantedImages
#
${CONTAINER_CLI} kill $(${CONTAINER_CLI} ps -q --filter name=ccaas) || true
# remove orderer block and other channel configuration transactions and certs
${CONTAINER_CLI} run --rm -v "$(pwd):/data" busybox sh -c 'cd /data && rm -rf system-genesis-block/*.block organizations/peerOrganizations organizations/ordererOrganizations'
## remove fabric ca artifacts