[Pkg-owncloud-commits] [owncloud-client] 221/332: tests: Another try to get around the jenkins test problem.

Sandro Knauß hefee-guest at moszumanska.debian.org
Thu Aug 14 21:07:02 UTC 2014


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 74b3e2ce3f579e3de31f12a87ca2153eb4fd2ac4
Author: Klaas Freitag <freitag at owncloud.com>
Date:   Fri Jul 18 12:19:46 2014 +0200

    tests: Another try to get around the jenkins test problem.
---
 csync/tests/ownCloud/ownCloud/Test.pm | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/csync/tests/ownCloud/ownCloud/Test.pm b/csync/tests/ownCloud/ownCloud/Test.pm
index 9540682..3538d83 100644
--- a/csync/tests/ownCloud/ownCloud/Test.pm
+++ b/csync/tests/ownCloud/ownCloud/Test.pm
@@ -34,6 +34,7 @@ use LWP::UserAgent;
 use LWP::Protocol::https;
 use HTTP::Request::Common qw( POST GET DELETE );
 use File::Basename;
+use IO::Handle;
 
 use Encode qw(from_to);
 use utf8;
@@ -577,7 +578,7 @@ sub createLocalFile( $$ )
   my $minimum = 32;
   my $range = 96;
 
-  for (my $bytes = 0; $bytes < $size; $bytes += 4) {
+  for (my $bytes = 0; $bytes < $size-1; $bytes += 4) {
     my $rand = int(rand($range ** 4));
     my $string = '';
     for (1..4) {
@@ -587,6 +588,9 @@ sub createLocalFile( $$ )
     print FILE $string;
     $md5->add($string);
   }
+  my $s = "\n";
+  print FILE $s;
+  $md5->add($s);
   close FILE;
   return $md5->hexdigest; 
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list