From 6b522486923fc388a9c3f9930c876b18416ca9a8 Mon Sep 17 00:00:00 2001 From: Thibault Martinez Date: Wed, 18 Dec 2024 10:16:37 +0100 Subject: [PATCH] chore(ci): print git status in simtest clippy.sh (#4530) * chore(ci): print git status in simtest clippy.sh * remove echo (to allow colors) --- scripts/simtest/clippy.sh | 1 + scripts/simtest/simtest-cov.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/simtest/clippy.sh b/scripts/simtest/clippy.sh index 951e372c211..9b64233cc5e 100755 --- a/scripts/simtest/clippy.sh +++ b/scripts/simtest/clippy.sh @@ -5,6 +5,7 @@ # verify that git repo is clean if [[ -n $(git status -s) ]]; then echo "Working directory is not clean. Please commit all changes before running this script." + git status -s exit 1 fi diff --git a/scripts/simtest/simtest-cov.sh b/scripts/simtest/simtest-cov.sh index a8701b87c0c..acd415165eb 100755 --- a/scripts/simtest/simtest-cov.sh +++ b/scripts/simtest/simtest-cov.sh @@ -6,7 +6,7 @@ # verify that git repo is clean if [[ -n $(git status -s) ]]; then echo "Working directory is not clean. Please commit all changes before running this script." - echo $(git status -s) + git status -s exit 1 fi