mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-19 19:32:45 +08:00
Revert "Speed up check-all-fish-files when executed locally"
My find (GNU findutils 4.8.0) prints
> find: unknown predicate `-mnewer'
So we would have to test for support.
Also this is *super* hacky - tests aren't supposed to keep files
around, this is something you would do in the build system.
This reverts commit ddd0e28b4f
.
This commit is contained in:
parent
10ef0d9daf
commit
e240d81ff8
|
@ -2,19 +2,7 @@
|
|||
# Test ALL THE FISH FILES
|
||||
# in share/, that is - the tests are exempt because they contain syntax errors, on purpose
|
||||
|
||||
set timestamp_file ./last_check_all_files
|
||||
set -l find_args
|
||||
if test -f $timestamp_file
|
||||
set find_args -mnewer $timestamp_file
|
||||
for file in $__fish_data_dir/**.fish
|
||||
$fish -n $file
|
||||
end
|
||||
set -l fail_count 0
|
||||
for file in (find $__fish_data_dir/ -name "*.fish" $find_args)
|
||||
$fish -n $file; or set fail_count (math $fail_count + 1)
|
||||
end
|
||||
|
||||
# Prevent setting timestamp if any errors were encountered
|
||||
if test "$fail_count" -eq 0
|
||||
touch $timestamp_file
|
||||
end
|
||||
|
||||
# No output is good output
|
||||
|
|
Loading…
Reference in New Issue
Block a user