summaryrefslogtreecommitdiffstats
path: root/cmso-robot/docker/cmso-service/ete_test.sh
blob: cd77ba5e070ce6c217be33146c74dc15d037935f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
docker-compose up >up.txt 2>&1 &

### Wait for robot to finish
sleep 60
docker exec -it cmso-service_cmso-robot_1 ls
while [ $? -ne 1 ]; do
  sleep 60
  docker exec -it cmso-service_cmso-robot_1 ls
done

### Shut down java with to give time to write the jacoco_exec file
docker exec cmso-service_cmso-service_1 pkill java
sleep 10

### wait for  cmso-service container to exit
docker exec -it cmso-service_cmso-service_1 ls
while [ $? -ne 1 ]; do
  sleep 60
  docker exec -it cmso-service_cmso-service_1 ls
done

docker ps -a
docker-compose down
docker ps -a