From 26e2d8ce28a96f5c83b7d1f57d9457d8d4c767a6 Mon Sep 17 00:00:00 2001 From: "Kyle D. McCormick" Date: Tue, 9 Jan 2024 15:37:29 -0500 Subject: [PATCH] test: improve output when source_and_dist_match fails --- .github/workflows/ci.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index db31a2c..cbb1d84 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,9 +27,10 @@ jobs: echo -e "\033[0;32mUnpacked .tar.gz files do match source XML, all is well. \033[0m" echo -e "\033[0;32m=============================================================================\033[0m" exit 0 + } || { + echo -e "\033[0;31m=============================================================================\033[0m" + echo -e "\033[0;31mERROR: Unpacked .tar.gz files do not match source XML! See differences below:\033[0m" + echo -e "\033[0;31m=============================================================================\033[0m" + git diff } - echo -e "\033[0;31m=============================================================================\033[0m" - echo -e "\033[0;31mERROR: Unpacked .tar.gz files do not match source XML! See differences below:\033[0m" - echo -e "\033[0;31m=============================================================================\033[0m" - git diff