[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-wget] [PATCH v6 3/5] Tests: exclude existing files from the check o
From: |
Yousong Zhou |
Subject: |
[Bug-wget] [PATCH v6 3/5] Tests: exclude existing files from the check of unexpected downloads. |
Date: |
Wed, 19 Mar 2014 23:42:06 +0800 |
Signed-off-by: Yousong Zhou <address@hidden>
---
tests/ChangeLog | 5 +++++
tests/WgetTest.pm.in | 5 ++++-
2 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/tests/ChangeLog b/tests/ChangeLog
index a7db249..d23e76e 100644
--- a/tests/ChangeLog
+++ b/tests/ChangeLog
@@ -1,5 +1,10 @@
2014-02-13 Yousong Zhou <address@hidden>
+ * Wget.pm.in: Exclude existing files from the check of unexpected
+ downloads.
+
+2014-02-13 Yousong Zhou <address@hidden>
+
* FTPServer.pm: Fix the handling of TYPE command and avoid endless
loop when doing binary mode RETR.
diff --git a/tests/WgetTest.pm.in b/tests/WgetTest.pm.in
index 58ad140..092777e 100644
--- a/tests/WgetTest.pm.in
+++ b/tests/WgetTest.pm.in
@@ -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";
}
--
1.7.2.5
- [Bug-wget] [PATCH v6 0/5] Make wget capable of starting downloads from a specified position., Yousong Zhou, 2014/03/19
- [Bug-wget] [PATCH v6 1/5] Make wget capable of starting downloads from a specified position., Yousong Zhou, 2014/03/19
- [Bug-wget] [PATCH v6 2/5] Tests: fix TYPE and RETR command handling., Yousong Zhou, 2014/03/19
- [Bug-wget] [PATCH v6 3/5] Tests: exclude existing files from the check of unexpected downloads.,
Yousong Zhou <=
- [Bug-wget] [PATCH v6 4/5] Tests: Add test cases for option --start-pos., Yousong Zhou, 2014/03/19
- [Bug-wget] [PATCH v6 5/5] Tests: Add constraint on https for --https-only test., Yousong Zhou, 2014/03/19
- Re: [Bug-wget] [PATCH v6 0/5] Make wget capable of starting downloads from a specified position., Giuseppe Scrivano, 2014/03/21