Commit Graph
8 Commits
Author SHA1 Message Date
Peter Barker 3708936c62 global: correct shebang lines to refernce python3
also remove the odd encoding line which is not required in Py3
2025-07-22 10:45:57 +10:00
Christian Clauss 22582bc6c9 Tools: Fix test_ccache.py to not confuse pytest discovery
`Tools/scripts/build_tests/test_ccache.py` has a filename that will make Pytest Discovery think that it should be tested.
* https://docs.pytest.org/en/stable/explanation/goodpractices.html#conventions-for-python-test-discovery

This script also has code ___at global scope___ that will fail if certain command line arguments are not provided.

The proposed change is to put that code under `if __name__ == "__main__":` so it will not be run at test time.
* https://docs.python.org/3/library/__main__.html

Search for `test_ccache`:
* https://github.com/search?q=repo%3AArduPilot%2Fardupilot%20test_ccache&type=code

How was this tested?
1. `pytest Tools/scripts/build_tests/test_ccache.py`
2. `pytest Tools`

Both of the above find no tests instead of crashing with a long, confusing error.
2025-06-22 16:51:40 -05:00
Pierre Kancir bfc94b6e02 Tools: output ccache and diff size output to github action summary 2024-11-26 15:41:03 +11:00
Pierre Kancir 2cd0ac1e35 Tools: move pretty_diff_size to Tools/build_tests 2024-11-26 15:41:03 +11:00
Maxim Buzdalov 5e5fde78c2 Tools: use same-bdshotness boards for ccache test 2024-04-09 10:45:08 +10:00
Andrew Tridgell d5470ae466 Tools: disable networking in ccache test
this allows for fair comparison between Durandal and Pixhawk6X
2023-11-17 10:54:24 -08:00
Andrew Tridgell 9742997a34 Tools: fixed ccache test for newer ccache version 2023-09-03 09:41:15 +10:00
Andrew Tridgell 6b962ae48b CI: added ccache test 2022-02-23 12:36:59 +11:00