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:
parent
5b3a48e73b
commit
8434951b7c
2
tox.ini
2
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}
|
||||
|
Loading…
Reference in New Issue
Block a user