[Pkg-owncloud-commits] [owncloud-client] 17/38: Tests: Give a more random name to test directories
Sandro Knauß
hefee-guest at moszumanska.debian.org
Fri Sep 5 20:20:55 UTC 2014
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch sid
in repository owncloud-client.
commit 1daf9bc80b0eba5c17d1c2c31df271d5c759441e
Author: Markus Goetz <markus at woboq.com>
Date: Tue Aug 12 16:25:04 2014 +0200
Tests: Give a more random name to test directories
---
csync/tests/ownCloud/ownCloud/Test.pm | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/csync/tests/ownCloud/ownCloud/Test.pm b/csync/tests/ownCloud/ownCloud/Test.pm
index 9540682..b7e4f19 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 POSIX qw/strftime/;
use Encode qw(from_to);
use utf8;
@@ -128,8 +129,9 @@ sub initTesting(;$)
# $d->DebugLevel(3);
$prefix = "t1" unless( defined $prefix );
- my $dirId = sprintf("%#.3o", rand(1000));
- my $dir = sprintf( "%s-%s/", $prefix, $dirId );
+ my $dirId = sprintf("%02d", rand(100));
+ my $dateTime = strftime('%Y%m%d%H%M%S',localtime);
+ my $dir = sprintf( "%s-%s-%s/", $prefix, $dateTime, $dirId );
$localDir = $dir;
$localDir .= "/" unless( $localDir =~ /\/$/ );
--
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