adguardhome-sync/testdata/e2e/bin/show-sync-logs.sh

9 lines
227 B
Bash
Raw Normal View History

2022-10-07 13:32:20 +08:00
#!/bin/bash
set -e
echo Pod adguardhome-sync logs
kubectl logs adguardhome-sync
ERRORS=$(kubectl logs adguardhome-sync | grep Error | wc -l)
echo "Found ${ERRORS} error(s) in log";
if [[ "${ERRORS}" != "0" ]]; then exit 1; fi