Niranjana | 3d457a0 | 2020-08-12 13:33:22 +0530 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | echo "Starting teardown script" |
| 3 | TEST_PLANS_DIR=$WORKSPACE/plans/dcaegen2-services-son-handler/testsuites |
Malarvizhi | ea92dc3 | 2022-03-23 14:52:42 +0000 | [diff] [blame] | 4 | TEST_SCRIPTS_CPS_DIR=$WORKSPACE/scripts/dcaegen2-services-son-handler/sonhandler/cps-sonhandler/cps |
Niranjana | 3d457a0 | 2020-08-12 13:33:22 +0530 | [diff] [blame] | 5 | mkdir -p $WORKSPACE/archives |
| 6 | |
| 7 | docker container stop configdb_oof_sim |
| 8 | docker container rm configdb_oof_sim |
| 9 | docker-compose -f $TEST_PLANS_DIR/docker-compose.yaml logs > $WORKSPACE/archives/sonhandler-docker-compose.log |
| 10 | docker-compose -f $TEST_PLANS_DIR/docker-compose.yaml down -v |
Malarvizhi | ea92dc3 | 2022-03-23 14:52:42 +0000 | [diff] [blame] | 11 | docker-compose -f $TEST_SCRIPTS_CPS_DIR/docker-compose.yaml down -v |