Skip to content

Commit

Permalink
Merge pull request #2577 from vincepri/fix-contextual-logging-diff
Browse files Browse the repository at this point in the history
🌱 verify-contextual-logging should diff from old to new
  • Loading branch information
openshift-merge-robot authored Jan 10, 2023
2 parents e2d3a45 + 1ef7117 commit fd6cb5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hack/verify-contextual-logging.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ fi
work_cleaned="$( sed -e 's/[0-9]*//g' "${work_file}" )"
log_cleaned="$( sed -e 's/[0-9]*//g' "${LOG_FILE}" )"

if ! changes="$(diff <(echo "${work_cleaned}") <(echo "${log_cleaned}") )"; then
if ! changes="$(diff <(echo "${log_cleaned}") <(echo "${work_cleaned}"))"; then
echo "[ERROR] Current logging errors and saved logging errors do not match."
echo "${changes}"
echo
Expand Down

0 comments on commit fd6cb5f

Please sign in to comment.