mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-16 23:41:16 -03:00
Commit22c0054c1e(Add check to test all fish files with -n, 2020-02-17) added a test that runs "fish --no-execute" on all fish files in share/**.fish Commit329cd7d429(Make functions, completions and tests resilient to running on an embed-data fish, 2025-03-25) change this to run it on **.fish. Evidently "the tests are exempt because they contain syntax errors" is no longer true - this is because we have since changed those files to recursively run 'fish -c "syntax-error"', which makes it easier to test for multiple syntax-errors in a single test file. Remove the comment. Globbing everything seems a bit crass, and there's no explicit motivation. $ time find -name '*.fish' >/dev/null Executed in 431.93 millis $ time find * -name '*.fish' >/dev/null Executed in 39.98 millis Let's go back to testing only directories where we currently have Git-tracked fish files. This makes uncached "check-all-fish-files.fish" go from 26 seconds to 5 seconds.