mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-10 07:04:29 +00: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
1 changed files with 8 additions and 2 deletions
|
@ -64,8 +64,14 @@ if not python3 -c 'import pexpect'
|
|||
end
|
||||
for i in $pexpect_files_to_test
|
||||
if not test_pexpect_file $i
|
||||
say yellow "Trying $i for a second time"
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue