mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 07:02:05 +08:00
Only retry failed pexpect tests under CI
A false negative while testing locally should be a rare thing, and individual pexpect tests already take too long in case of a non-match making for a painful edit-test loop.
This commit is contained in:
parent
21599a49ea
commit
3913b28153
|
@ -64,10 +64,16 @@ if not python3 -c 'import pexpect'
|
|||
end
|
||||
for i in $pexpect_files_to_test
|
||||
if not test_pexpect_file $i
|
||||
# Retry pexpect tests under CI twice, as they are timing-sensitive and CI resource
|
||||
# contention can cause tests to spuriously fail.
|
||||
if set -qx CI
|
||||
say yellow "Trying $i for a second time"
|
||||
if not test_pexpect_file $i
|
||||
set failed $failed $i
|
||||
end
|
||||
else
|
||||
set failed $failed $i
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user