Skip to content

Commit

Permalink
Fix printing in validate_and_clean_broker_info
Browse files Browse the repository at this point in the history
Provide full path of decoded_broker_info.subm.orig and also pretty
print.

Signed-off-by: Tom Pantelis <[email protected]>
  • Loading branch information
tpantelis committed Jan 29, 2024
1 parent 890885b commit b18f429
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/test/system.sh
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ function validate_and_clean_broker_info() {
base64 -d broker-info.subm > decoded_broker_info.subm
if ! diff <(yq -P eval decoded_broker_info.subm) <(yq -P eval "$DAPPER_SOURCE"/output/decoded_broker_info.subm.orig); then
echo "Printing the original broker_info.subm file"
cat decoded_broker_info.subm.orig
yq -P eval "$DAPPER_SOURCE"/output/decoded_broker_info.subm.orig
echo "Printing the recovered broker_info.subm file"
cat decoded_broker_info.subm
yq -P eval decoded_broker_info.subm
fi
rm -f broker-info.subm decoded_broker_info.subm
}
Expand Down

0 comments on commit b18f429

Please sign in to comment.