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
This commit is contained in:
Jan Zerebecki 2020-12-11 16:42:15 +01:00
parent 5b3a48e73b
commit 8434951b7c
No known key found for this signature in database
GPG Key ID: 94D2D0D2432ED7CC
1 changed files with 1 additions and 1 deletions

View File

@ -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}