zebrunner / mcloud-agent

18 stars 11 forks source link

Check grep conditions #339

Open azarouski opened 6 days ago

azarouski commented 6 days ago

https://github.com/zebrunner/mcloud-agent/blob/master/roles/devices/templates/zebrunner-farm#L459

docker ps -a | grep -v appium | grep $container > /dev/null
if [ $? -eq 0 ]; then
  stfState=`docker inspect --format='{{ '{{' }}json .State.Health.Status{{ '}}' }}' $container`
fi

why we use -v appium