mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-02 10:23:25 +08:00
The bug this guards against is a silent mis-report: a second local run of process_scan_build_output.py moved its reports beneath the previous run's tmp/scan-build and then read the previous run's findings. Check that outside GitHub Actions the reports stay where scan-build put them and a repeat run reads its own findings, that under GitHub Actions they are archived beneath the workspace, and that an existing archive or a workspace that is not an absolute path fails the run rather than losing the reports. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Tests
Caution
pytest tests/will be run in GitHub Actions.
All Python files in this directory that meet pytest discovery rules will be examined by pytest and all tests that it finds will be run.
Files of the form test_*.py or *_test.py should avoid code at global scope because it will be executed in pytest's discovery process. Classes, functions, and code in if __name__ == "__main__": blocks will not be run in this discovery process, but code at global scope (including imports) will.