From 8434951b7cdd1d01c1d8af81f6d14c83c5c0ed3e Mon Sep 17 00:00:00 2001 From: Jan Zerebecki Date: Fri, 11 Dec 2020 16:42:15 +0100 Subject: [PATCH] Better error output for update-test-platforms.py When update-test-platforms.py autogenerates parts that are checked into git and the generated and commited content is different the CI error is hard to understand. Make it explicit what caused this. Output the diff, so one can see the difference. Change-Id: Ib9751c6ad6dc55514177934e0db327c5d08b74eb --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 31b405cac..3a5d209b4 100644 --- a/tox.ini +++ b/tox.ini @@ -56,7 +56,7 @@ commands = {toxinidir}/tools/update-test-platforms.py bash -c "(( $(find playbooks -name *.yml | wc -l) == 0)) || \{ echo 'Use .yaml'; exit 1; \}" bash -c "(( $(find roles -name *.yml | wc -l) == 0)) || \{ echo 'Use .yaml'; exit 1; \}" - bash -c "git diff --quiet || \{ git status --porcelain; echo 'ERROR: git in dirty status, reporting as failure'; exit 1; \}" + bash -c "git diff; git diff --quiet || \{ git status; echo 'ERROR: The commited content and the via update-test-platforms.py autogenerated content differ. Make sure these are the same.'; exit 1; \}" [testenv:venv] commands = {posargs}