mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
Tests: exclude existing files from the check of unexpected downloads.
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
This commit is contained in:
parent
701e407af5
commit
ed54c64ad2
@ -1,3 +1,8 @@
|
||||
2014-02-13 Yousong Zhou <yszhou4tech@gmail.com>
|
||||
|
||||
* Wget.pm.in: Exclude existing files from the check of unexpected
|
||||
downloads.
|
||||
|
||||
2014-02-13 Yousong Zhou <yszhou4tech@gmail.com>
|
||||
|
||||
* FTPServer.pm: Fix the handling of TYPE command and avoid endless
|
||||
|
@ -256,7 +256,10 @@ sub _verify_download {
|
||||
# make sure no unexpected files were downloaded
|
||||
chdir ("$self->{_workdir}/$self->{_name}/output");
|
||||
|
||||
__dir_walk('.', sub { push @unexpected_downloads, $_[0] unless (exists $self->{_output}{$_[0]}) }, sub { shift; return @_ } );
|
||||
__dir_walk('.',
|
||||
sub { push @unexpected_downloads,
|
||||
$_[0] unless (exists $self->{_output}{$_[0]} || $self->{_existing}{$_[0]}) },
|
||||
sub { shift; return @_ } );
|
||||
if (@unexpected_downloads) {
|
||||
return "Test failed: unexpected downloaded files [" . join(', ', @unexpected_downloads) . "]\n";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user