safely. Set the nocheck=1 to prevent the test script to verify the arrival
of this data.
</data>
-<datacheck>
-if the data is sent but this is what should be checked afterwards
+<datacheck [nonewline=yes]>
+if the data is sent but this is what should be checked afterwards. If
+'nonewline' is set, we will cut off the trailing newline of this given data
+before comparing with the one actually received by the client
</datacheck>
<size>
number to return on a ftp SIZE command
if (@replycheck) {
# we use this file instead to check the final output against
+
+ my %hash = getpartattr("reply", "datacheck");
+ if($hash{'nonewline'}) {
+ # Yes, we must cut off the final newline from the final line
+ # of the datacheck
+ chomp($replycheck[$#replycheck]);
+ }
+
@reply=@replycheck;
}