Skip to content

Commit

Permalink
Address PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
lilic committed Jul 12, 2019
1 parent a6491a7 commit de19962
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -185,12 +185,12 @@ sleep 33
klog_err=E$(date +%m%d)
echo "check for errors in logs"
output_logs=$(kubectl --namespace=kube-system logs deployment/kube-state-metrics kube-state-metrics)
if echo "$output_logs" | grep "^$klog_err"; then
if echo "${output_logs}" | grep "^${klog_err}"; then
echo ""
echo "======================================="
echo "found errors in kube-state-metrics logs"
echo "======================================="
echo "==========================================="
echo "Found errors in the kube-state-metrics logs"
echo "==========================================="
echo ""
echo "$output_logs"
echo "${output_logs}"
exit 1
fi

0 comments on commit de19962

Please sign in to comment.