aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2014-03-29 11:30:01 +0000
committerSteve Holme <steve_holme@hotmail.com>2014-03-29 20:50:27 +0000
commit2baf38f7c3251deff6691311ab549014d305d1cb (patch)
tree11111945c2ea2ac8c1b8c9a3b38582632556aec4
parent8293691b8884975e1f225add36c10b7a41019e63 (diff)
ftpserver.pl: Added fallback to <data> support when using multiple URLs
Added support for falling back to <data> when <data1>, <data2>, etc... don't exist in the <reply> section of a unit test.
-rwxr-xr-xtests/ftpserver.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/ftpserver.pl b/tests/ftpserver.pl
index e5c461a45..76b6f4bea 100755
--- a/tests/ftpserver.pl
+++ b/tests/ftpserver.pl
@@ -452,6 +452,9 @@ sub getreplydata {
loadtest("$srcdir/data/test$testno");
my @data = getpart("reply", "data$testpart");
+ if((!@data) && ($testpart ne "")) {
+ @data = getpart("reply", "data");
+ }
return @data;
}